getting a process return value from popen()?

jschmitt at vmlabs.com jschmitt at vmlabs.com
Tue Oct 24 01:45:17 EDT 2000


If you do something like:

(instream,outstream) = popen4( "foo.exe" )

how do you get the return value from 'foo.exe' when it finally
terminates after reading everything from 'outstream'?  Say for
example, 'foo.exe' returns a non-zero integer to indicate an error
condition.

John


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list