The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to get process name from process id in all Unix platforms? molu High Level Programming 3 04-26-2006 01:41 AM
UNIX Process Suspend proton UNIX for Dummies Questions & Answers 3 02-13-2005 03:27 AM
unix process control nicko Filesystems, Disks and Memory 2 05-16-2002 08:39 AM
Unix Process S.P.Prasad High Level Programming 3 01-22-2002 03:45 AM
Unix Process Failed killerserv UNIX for Dummies Questions & Answers 1 05-09-2001 11:08 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-25-2006
mishra.dd mishra.dd is offline
Registered User
  
 

Join Date: Aug 2006
Posts: 1
Unix Process

Hi

does unix keep track of the processes or programs it ran. can i check when my program last ran on the system.

any suggestions are welocme.

-- logs made by the program it self are missing.

Regards
Debadatta
  #2 (permalink)  
Old 08-25-2006
rein rein is offline
Registered User
  
 

Join Date: Dec 2004
Location: Zürich
Posts: 146
You can create a wrapper script:

#!/bin/ksh

echo `date` >> logfile

"execute your progam here"

echo `date` >> logfile


This way before your program starts and after it finishes the date is written to the file specified.
  #3 (permalink)  
Old 08-28-2006
kingskar kingskar is offline
Registered User
  
 

Join Date: Aug 2006
Posts: 21
Quote:
Originally Posted by rein
You can create a wrapper script:

#!/bin/ksh

echo `date` >> logfile

"execute your progam here"

echo `date` >> logfile


This way before your program starts and after it finishes the date is written to the file specified.

sorry
I couldn't understand how this script helps to trace processes.
  #4 (permalink)  
Old 08-29-2006
Corona688 Corona688 is offline
Registered User
  
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 1,960
Quote:
Originally Posted by kingskar
sorry
I couldn't understand how this script helps to trace processes.
It makes log entries when a program starts and ends.

UNIX does not save this info automatically. You have to have some sort of system set up to remember it.

Last edited by Corona688; 08-29-2006 at 08:08 PM..
  #5 (permalink)  
Old 08-29-2006
reborg's Avatar
reborg reborg is online now Forum Staff  
Administrator
  
 

Join Date: Mar 2005
Location: Ireland
Posts: 4,234
If you have process accounting turned on you will be able to see when an arbitrary command ran, otherwise, no.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:28 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0