from subprocess import call call(["cat","/etc/issue"]) call(["ifconfig","-a"]) call(["cat","/etc/passwd"])
Standard input is empty
Standard output is empty
cat: /etc/issue: No such file or directory Traceback (most recent call last): File "prog.py", line 3, in <module> File "/usr/lib/python2.7/subprocess.py", line 493, in call return Popen(*popenargs, **kwargs).wait() File "/usr/lib/python2.7/subprocess.py", line 679, in __init__ errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1259, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory