Can I capture console output from an os.system() call?

Steve Lamb grey at
Sat Mar 3 10:23:35 CET 2001

On Fri, 2 Mar 2001 14:46:05 -0800, Brian Geddes <brian.j.geddes at>
>When I call a foreign program using an os.system("program.exe") call, is
>possible to get at the console output of "program.exe" from my python

    I believe you're looking for os.popen()

         Steve C. Lamb         | I'm your priest, I'm your shrink, I'm your
         ICQ: 5107343          | main connection to the switchboard of souls.

More information about the Python-list mailing list