oprhan/zombie processes

tony.chamberlain at lemko.com tony.chamberlain at lemko.com
Mon Apr 28 12:55:38 UTC 2008


Someone requested a list of orphaned and zombie processes. I know that orphan processes have
PPID of 1 so I can 

 ps -aeo user,pid,ppid,stime,time,state,command | awk '($3=="1" ||$6=="Z")'

But this will also print all system processes because they also have PPID of 1.
How can I find just the orphan processes
(without | grep -v mgetty | grep -v init | grep -v this | grep -v that | grep -v something_else | grep -v blahblahblah)?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20080428/c2989c23/attachment-0001.htm>


More information about the fedora-list mailing list