Redirecting system output quietly

Donn Cave donn at
Tue Nov 16 19:01:20 CET 2004

In article <abf57198.0411160816.26d192c9 at>,
 hugonz at (Hugo Gonz?lez) wrote:

> There's an even easier way to do this. You can use the "commands"
> module:
> This is easier and faster than using popen, and will allow you to get
> exit status (os.popen* won't let you)

You can look at the implementation, it's a Python source file in the library directory.  I mention that because
you might be interested to see how it uses os.popen, and gets
the status.

   Donn Cave, donn at

More information about the Python-list mailing list