title: Redirect stderr to stdout on exec-ed process from python?
body: <p>In a bash script, I can write:</p>
  
  <pre><code>exec 2&gt;&amp;1
  exec someprog
  </code></pre>
  
  <p>And the stderr output of <code>someprog</code> would be redirected to stdout.</p>
  
  <p>Is there any way to do a similar thing using python's <a href="http://docs.python.org/library/os.html#os.execl" rel="nofollow noreferrer"><code>os.exec*</code></a> functions?</p>
  
  <p>This doesn't have to be portable, just work on Linux.</p>