There are at least two solutions. One solution is to read the ps manpage more carefully: --snip % ps -eo pid,etime,args ... % man ps ... etime In the POSIX locale, the elapsed time since the pro- cess 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. ... --snip The other solution is attached. Thanks to John and Petri! Aleks -----Urspr|ngliche Nachricht----- Von: JULIAN, JOHN C (AIT) [mailto:jj2195@sbc.com] Gesendet: Donnerstag, 3. Mdrz 2005 15:17 An: Pavic, Aleksander Betreff: RE: determine a process start time Get the process pid and check the timestamp in /proc ie: ls -ld /proc/<pid> John Julian ASI, SBC 29777 Telegraph Rd. Suite 1200 Southfield, MI 48034 phone: 248-386-1741 pager: 800-621-4951 cell: 248-376-6364 -----Original Message----- From: sunmanagers-bounces@sunmanagers.org [mailto:sunmanagers-bounces@sunmanagers.org] On Behalf Of Pavic, Aleksander Sent: Thursday, March 03, 2005 9:03 AM To: sunmanagers@sunmanagers.org Subject: determine a process start time Hello all, is there a possibility to determine the time a process@Solaris8 was started? ps -ef prints the day, but not the exact time. Have checked the ps manpage without a positiv result. Ideas? tia, Aleks _______________________________________________ sunmanagers mailing list sunmanagers@sunmanagers.org http://www.sunmanagers.org/mailman/listinfo/sunmanagers _______________________________________________ sunmanagers mailing list sunmanagers@sunmanagers.org http://www.sunmanagers.org/mailman/listinfo/sunmanagersReceived on Thu Mar 3 09:43:54 2005
This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:44 EST