Published at LXer:
Yesterday, I needed to determine the runtime of a Linux process for a monitoring script. Cos the format for start_time of the ps command may change if the process was not started in the same year, I decided to take the neccessary informations from the /proc/[he]lt[/he]PID[he]gt[/he]/stat file.
Read More...