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 -->
  #3 (permalink)  
Old 08-21-2008
buffoonix buffoonix is offline
Registered User
  
 

Join Date: Mar 2006
Posts: 145
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