Title: Obtain the exact process start time
Author: Sandro Tosi
Last modified: 2005-03-28
Using `ps' command you can know the process start time only if it was
started today, otherwise you only see the date (in format MonthDay)
but not hours and minutes.
By an option of `ps' we are able to obtain the start time, or better,
how far a process was started:
# ps -eo pid,etime,args
from the man page:
etime In the POSIX locale, the elapsed time since the process was
started, in the form:
[[dd-]hh:]mm:ss
where
dd is the number of days
hh is the number of hours
mm is the number of minutes
ss is the number of seconds
The dd field will be a decimal integer. The hh, mm and ss
fields will be two-digit decimal integers padded on the left
with zeros.
|