How to get process info from python

vs vinodh at
Mon Jun 7 23:31:01 CEST 2004

"Gardner Pomper" <gardner at> wrote in message news:<mailman.671.1086631192.6949.python-list at>...
> Hi,
> I have another newbie question for the list. I have some python scripts that
> need to look at the list of processes running on the system. I am currently
> just spawning a 'ps' and parsing the output. Are there any existing python
> modules to do this? It would be particularly handy to have it be more
> platform independent than my solution, which works only on AIX.
> - Gardner

Try the os,sys modules that comes with python. They help u in
interfacing with the OS directly.
- vinodh

More information about the Python-list mailing list