The commands ModuleThe easy way to capture the output of a subprocess
import commands
data = commands.getoutput("ls -l")
arg = mkarg(str) # Turns str into a argument suitable
# for use in the shell (to prevent mischief)
Comments
|
| <<< | O'Reilly OSCON 2000, Advanced Python Programming, Slide 55 July 17, 2000, beazley@cs.uchicago.edu |
>>> |