[Tutor] Output of os.system("c:\myprog.exe") "piped" to a python
Tue, 10 Oct 2000 10:36:29 -0700 (PDT)
On Tue, 10 Oct 2000, nicolas baurin wrote:
> clearly i'm using os.system() to launch an external program ;i have to
> "redirect" what comes into the console (standard output of the
> external program) towards a python object: sys.stdout is not enough
> since it's applying to the python interpretor...
why not use commands.getoutput() ?
_Deirdre * http://www.sfknit.org * http://www.deirdre.net
"More damage has been caused by innocent program crashes than by
malicious viruses, but they don't make great stories."
-- Jean-Louis Gassee, Be Newsletter, Issue 69