Getting stdout and stderr from popen

Jason Orendorff jason at jorendorff.com
Mon Mar 11 01:37:57 EST 2002


Stefan Heimann wrote:
> f = os.popen('cvs status 2>&1')
> does the right thing, but does not work on all platforms.

I'm sure it doesn't work on *all* platforms, but it works
for me on Windows 2000.  I'm sure someone here knows the
details on this; I don't.  Give it a try.

## Jason Orendorff    http://www.jorendorff.com/




More information about the Python-list mailing list