Redirect output from os.system()

Era Akost era_akost at yahoo.de
Tue Nov 27 11:41:03 EST 2001


Hi all,

Searching through the group emails, I've found out how to redirect
output from python functions. Now I would like to redirect the output
from a os.system() process to a Text widget. How can I do it?

Python Reference Library  says the following on stdout, stdin of sys
module:

"(Changing these objects doesn't affect the standard I/O streams of
processes executed by os.popen(), os.system() or the exec*() family of
functions in the
os module.)"  

So, what should be done??

Thanks, 
Era



More information about the Python-list mailing list