Can subprocess point to file descriptor 5?

Steve Quezadas steve at thestever.net
Tue May 2 19:26:53 EDT 2006


Hello,

I tried posting this to the web forums without much luck.

I have some simple subprocess code here:
output = subprocess.Popen([/usr/bin/program"],
stdout=subprocess.PIPE).communicate()[0]

However, /usr/bin/prgram also outputs not only to stdout and stderr but
to file descriptor [5]. Can I redirect this output to either a file or a
variable?

- Steve




More information about the Python-list mailing list