Hi,
Can someone explain what a broken pipe is? The following produces a
broken pipe error:
----------
import subprocess as sub
p = sub.Popen(["ls", "-al", "../"], stdin=sub.PIPE, stdout=sub.PIPE )
print p.stdout.read()
#outputs the files correctly
p.stdin.write(" ls\n")
#IOError: [Errno 32] Broken pipe
-----------
Can someone explain what a broken pipe is? The following produces a
broken pipe error:
----------
import subprocess as sub
p = sub.Popen(["ls", "-al", "../"], stdin=sub.PIPE, stdout=sub.PIPE )
print p.stdout.read()
#outputs the files correctly
p.stdin.write(" ls\n")
#IOError: [Errno 32] Broken pipe
-----------
Comment