In a bash script, I can write:
exec 2>&1
exec someprog
And the stderr output of someprog
would be redirected to stdout.
Is there any way to do a similar thing using python's os.exec*
functions?
This doesn't have to be portable, just work on Linux.