Processes in Linux from Python

Christian Heimes lists at cheimes.de
Mon Sep 1 06:21:22 EDT 2008


Johny wrote:
> Is it possible to get a number of the http processes running on Linux
> directly from Python ?

The Python core has no direct API for the job. However you can use the 
virtual /proc/ file system for the job. Or check out my enumprocess 
package. 
http://pypi.python.org/pypi?:action=display&name=enumprocess&version=0.1
It's far from perfect but it should do the job on Linux.

Christian




More information about the Python-list mailing list