Friday, 23 October 2009

To find the hung a process uptime

To know the time of process that has been running for some time since machine uptime on linux-2.4:


pd=<put your pid>;expr $(awk '{print $1}' FS=\. /proc/uptime) - $(awk '{printf ("%10d\n",$22/100)}' /proc/$pd/stat)




No comments:

Post a Comment

Tweets by @sriramperumalla