ps interface or module

Anthony Baxter anthony at interlink.com.au
Thu Jan 30 23:35:59 EST 2003


>>> David Bear wrote
> is there a python module or interface to the system process list?  I really 
> want to avoid calling ps -ax from a subshell and parsing the output.  I 
> can't seem to find anything in the python essential reference.
> 
> any pointers?  (running on unix)

If you're running a system with /proc, you can parse that. I have a simple
module that processes Solaris /proc entries that I can post if it's useful
to people.

Anthony





More information about the Python-list mailing list