[Tutor] subprocess Popen PIPE error
Sean Carolan
scarolan at gmail.com
Tue Oct 26 15:22:33 CEST 2010
What am I doing wrong here?
>>> from subprocess import Popen, PIPE
>>> cmd = 'ls -l'
>>> p = Popen(cmd, stdout=PIPE, stderr=PIPE)
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/lib64/python2.4/subprocess.py", line 550, in __init__
errread, errwrite)
File "/usr/lib64/python2.4/subprocess.py", line 993, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
More information about the Tutor
mailing list