Home     My Faqts     Contributors     About     Help    

faqts : Computers : Programming : Languages : Python

FAQTs repaired & updated!
Thanks for your patience...
Entry Add Entry Alert - Edit this Entry

Did You Find This Entry Useful?

0 of 1 people (0%) answered Yes
Recently 0 of 1 people (0%) answered Yes

How do I get the pid from os.popen?

Jul 15th, 2003 06: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.

© 1999-2004 Synop Pty Ltd