UNIX processes

Michael Stenner mstenner at phy.duke.edu
Tue Sep 10 08:39:24 EDT 2002

On Tue, Sep 10, 2002 at 12:33:05PM +0200, Bo M. Maryniuck wrote:
> Hi, all.
> Somebody know how to list all the processes in RIGHT way on Linux/UNIX?
> I need to find the zombies, stopped processes etc.

The problem is that almost every different UNIX(like) system has a
different interface to the kernel/process table.  You have a couple of

  1) use the program "ps", which does the right thing for any given
     os/kernel and presents a fairly standardized report, or

  2) pick the os(s) that you care about, and write your own code to do
     it directly.  On linux, that can be done pretty nicely through the
     /proc/ filesystem ("man proc").

  Michael Stenner                       Office Phone: 919-660-2513
  Duke University, Dept. of Physics       mstenner at phy.duke.edu
  Box 90305, Durham N.C. 27708-0305

More information about the Python-list mailing list