How to find processes from Python

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

In message
<9f04931c-867b-4ff3-820c-3f8d0bfd2618 at>, Johny

> 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