title: How to capture output of subprocess OTHER than stdout/stderr?
body: <p>I have a program that I would like to launch via subprocess.  It can output to fd other than stdout and stderr.  Is there a way to capture data from an arbitrary fd?  I'd like to do something like the following, if my process is sending output to fd 9:</p>
  
  <pre><code>import subprocess, StringIO
  redirector = StringIO.StringIO()
  errno = subprocess.call(cmd, fd9=redirector)
  #process the error code and data in redirector
  </code></pre>
  
  <p>I do <strong>not</strong> want to redirect the called process's output to fd 9 through stderr or stdout.</p>