from subprocess import * Popen(["ls","-l"])
a = Popen(["ls","-l"], stdout=PIPE) for line in a.stdout: print line
Popen(['/bin/sh', '-c', args[0], args[1], ...])