S
Steve Quezadas
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
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