Programmatically Getting Process ID

Moshe Zadka moshez at math.huji.ac.il
Sat Mar 4 05:01:20 EST 2000


On 4 Mar 2000, Samuel A. Falvo II wrote:

> In article <89pi3n$8lc$1 at nnrp1.deja.com>, Hernan M. Foffani wrote:
> >The portable way to do it (in UN*X, I mean) is to run a script and get
> >the output (via pipes), something like:
> 
> That's bloody insane.  There's no way to iterate through the list of running
> processes and query them for name and ID?

No *portable* way. 

> (How the heck does PS get its process listing anyway?)

Not portably <wink>.
--
Moshe Zadka <mzadka at geocities.com>. 
http://www.oreilly.com/news/prescod_0300.html





More information about the Python-list mailing list