In message <200002281909.UAA22123@lrcsun15.epfl.ch>, Werner Almesberger
writes:
+-----
| Walter Hofmann wrote:
| >> ps ax | grep -c '<zombie>'
| >
| > It't too high by one because grep counts itself ;-)
|
| Grr, ps ax | grep -c '<z[o]mbie>' then :-)
+--->8
ps acx | grep '<defunct>'
If you want to be really careful,
ps acx | awk '$6 == "<defunct>"'
-- brandon s. allbery os/2,linux,solaris,perl allbery@kf8nh.apk.net system administrator kthkrb,heimdal,gnome,rt allbery@ece.cmu.edu carnegie mellon / electrical and computer engineering kf8nh We are Linux. Resistance is an indication that you missed the point.- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Tue Feb 29 2000 - 21:00:21 EST