How to get process info from python

Donn Cave donn at
Tue Jun 8 01:13:44 CEST 2004

In article <mailman.678.1086645166.6949.python-list at>,
 "Gardner Pomper" <gardner at> wrote:
> Thanks for the suggestion, but I have already looked at those modules. Do
> you have a command in mind? I can only find process information about the
> python process and its parents and children.. if I want to see a list of all
> processes on the system, or all processes for the current user, I don't see
> any way to get that.

There isn't any support for this in Python.  Normally when saying
something like that, I could half expect someone to pop up with
a module or something, but in this case I feel relatively confident
that no such module is widely supported.

On Linux and *BSD platforms, you can get this information from the
/proc filesystem instead of "ps", but it's still fairly platform
dependent.  Of course that won't work on AIX.

   Donn Cave, donn at

More information about the Python-list mailing list