How to get os.popen subprocess PID?

janne halttunen jhalttun at
Thu Sep 5 08:43:19 EDT 2002

Hi all,

I have a subprocess opened with os.popen, producing undefined length of 
data.  I want to read maybe some of this data and then get rid of the 
subprocess, not waiting until the end of data.  I have thought of 
os.kill-ing the process.  So far I haven't been able to determine how to 
get the pid of the subprocess, required by os.kill .. Any pointers?


More information about the Python-list mailing list