Luca Cerone wrote: >> >> That's because stdin/stdout/stderr take file descriptors or file >> >> objects, not path strings. >> > > Thanks Chris, how do I set the file descriptor to /dev/null then?
For example: with open(os.devnull, "wb") as stderr: p = subprocess.Popen(..., stderr=stderr) ... In Python 3.3 and above: p = subprocess.Popen(..., stderr=subprocess.DEVNULL) -- http://mail.python.org/mailman/listinfo/python-list