The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 08-22-2008
pikecoguy pikecoguy is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 2
Thumbs up

Quote:
Originally Posted by buffoonix View Post
Most ps implementations show it as <defunct>.
So you could simply
Code:
$ ps -ef | grep defunct

With Linux ps you can also go after the state like such, provided there are any zombies
which well behaved programs simply don't produce

Code:
$ ps -e -o pid= -o state=|awk '$2=="Z"{print$1}'|tr \\040 ,|xargs ps -fp
Thank you very much that helps a ton I will use these and see what I come up with.

Michael