Traping output from os.system

Grant Edwards nobody at nowhere.nohow
Sun Jul 2 11:57:35 EDT 2000


On Sun, 02 Jul 2000 14:47:41 GMT, Mark Hammond <MarkH at ActiveState.com> wrote:

>You want "popen".  For non-windows platforms, "os.popen" is where you can
>find it.  For Win32 systems, you need the win32 extensions, and
>"win32pipe.popen".

The commands module has a nice function that runs a program and
returns the exit status and output as a tuple.

-- 
Grant Edwards                   grante             Yow!  I represent a
                                  at               sardine!!
                               visi.com            



More information about the Python-list mailing list