faqts : Computers : Programming : Languages : Python

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

2 of 11 people (18%) answered Yes
Recently 2 of 10 people (20%) answered Yes


How do I get the pid from os.popen?

Jul 14th, 2003 13:34
Michael Chermside, Rob Cakebread,

From the "keep this under your pillow" library reference:
These methods do not make it possible to retrieve the return code from 
the child processes. The only way to control the input and output 
streams and also retrieve the return codes is to use the Popen3 and 
Popen4 classes from the popen2 module; these are only available on Unix.