fork download
  1. from subprocess import call
  2. call(["cat","/etc/issue"])
  3. call(["ifconfig","-a"])
  4. call(["cat","/etc/passwd"])
  5.  
  6.  
Runtime error #stdin #stdout #stderr 0.02s 8120KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
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