get output of cmd-line command under MS windows

Fredrik Lundh fredrik at pythonware.com
Tue Feb 14 05:53:29 EST 2006


"calmar" wrote:

> that was good, but on python2.4
>
> subprocess is GREAT! e.g.:
>
>     pipe = subprocess.Popen(tot, stdout=subprocess.PIPE,\
>             stderr=subprocess.PIPE, shell=False)
>     message = pipe.stdout.read()
>     error = pipe.stderr.read()

footnote: subprocess is available for Python 2.2 and later, from

    http://www.lysator.liu.se/~astrand/popen5/

</F>






More information about the Python-list mailing list