We're back after a server migration that caused effbot.org to fall over a bit harder than expected. Expect some glitches.

The commands module

(Unix only). This function contains a few convenience functions, designed to make it easier to execute external commands under Unix.

Example: Using the commands module
# File: commands-example-1.py

import commands

stat, output = commands.getstatusoutput("ls -lR")

print "status", "=>", stat
print "output", "=>", len(output), "bytes"

status => 0
output => 171046 bytes