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

Steve Lamb grey at despair.rpglink.com
Sat Mar 3 04:23:35 EST 2001


On Fri, 2 Mar 2001 14:46:05 -0800, Brian Geddes <brian.j.geddes at intel.com>
wrote:
>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
>script?

    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