Re: [Python-Dev] subprocess.Popen(.... stdout=IGNORE, ...)

2006-06-11 Thread Terry Reedy
"Martin Blais" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Any idea how this idiom could be supported using a more portable > solution (i.e. how would I make this idiom under Windows, is there > some equivalent to /dev/null)? On a DOS/Windows command line, '>NUL:' or '>nu

[Python-Dev] subprocess.Popen(.... stdout=IGNORE, ...)

2006-06-11 Thread Martin Blais
In the subprocess module, by default the files handles in the child are inherited from the parent. To ignore a child's output, I can use the stdout or stderr options to send the output to a pipe:: p = Popen(command, stdout=PIPE, stderr=PIPE) However, this is sensitive to the buffer deadlock p