How to get os.popen subprocess PID?

janne halttunen jhalttun at pp.htv.fi
Thu Sep 5 21:41:23 CEST 2002


Ricardo wrote:
>>Instead of using os.popen() you could import the popen2 module and use the
>>Popen3 or Popen4 classes.
>>
>>Objects of these classes contain a 'pid' attribute.
>>
> 
> 
> Sorry, forgot to mention these classes are available on Unix only ...

Yeah, I'm on linux, so that's no problem.

Thanks,

janne




More information about the Python-list mailing list