How long the process is running?

voip-sipgw02 ~ # ps --pid `pidof rsyslogd` -o etime,pid,user,args
    ELAPSED    PID USER     COMMAND
261-20:58:45  1228 root     /usr/sbin/rsyslogd -n

The etime option means elapsed time since the process was started, in the form [[DD-]hh:]mm:ss.

Tags: , ,

Comments are closed.