pbs: open device for output in write mode
As found by jm@nexedi.com : >>> with open('/dev/null') as f: ... subprocess.check_call(('echo', 'foo'), stdout=f) echo: write error: Bad file descriptor
As found by jm@nexedi.com : >>> with open('/dev/null') as f: ... subprocess.check_call(('echo', 'foo'), stdout=f) echo: write error: Bad file descriptor