klmr92 / uguu

Automatically exported from code.google.com/p/uguu
Other
0 stars 1 forks source link

stderr from the subprocesses of python scripts should be passed to the python's stderr #11

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It should be a simple way to redirect entire stderr into log files by
crontab command. Python by default merges the stdout and stderr from
subprocesses, so now stderr is redirected to /dev/null inside scripts.

Original issue reported on code.google.com by radist...@gmail.com on 25 Jan 2010 at 8:37

GoogleCodeExporter commented 9 years ago

Original comment by radist...@gmail.com on 25 Jan 2010 at 8:50

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
subprocess.Popen(stderr=None) does exactly what we want, so let's use it

Original comment by radist...@gmail.com on 1 Feb 2010 at 10:30

GoogleCodeExporter commented 9 years ago
fixed

Original comment by ruslan.savchenko on 5 Feb 2010 at 11:36