How to find processes from Python

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Mon Jul 28 00:02:02 EDT 2008


In message
<9f04931c-867b-4ff3-820c-3f8d0bfd2618 at e53g2000hsa.googlegroups.com>, Johny
wrote:

> Is there a way how to find out  running processes?E.g. how many
> Appache's processes are running?

Under Linux, every process has a procfs directory /proc/<pid>, where <pid>
is the process ID. In here you will find all kinds of interesting
information about the process command line, what files it has open, its
environment, its memory usage etc.



More information about the Python-list mailing list