Getting a proccesses ID

Sean 'Shaleh' Perry shalehperry at
Fri Sep 6 18:56:35 CEST 2002

On Friday 06 September 2002 09:48, Micah Mayo wrote:
> Ah, but os.getpid get's my pid, I need to get another programs, and in
> fact, several other program's pid. :)

hence the smiley.

If you wanted to be cool about it you could write a python module which parsed 
the various /proc interfaces of BSD, Linux, Solaris and created process 
trees/maps/dictionaries from this data.  Kind of like writing a generic db 
frontend to read the os's backend.

More information about the Python-list mailing list