title: Suppress output in Python calls to executables
body: <p>I have a binary named <code>A</code> that generates output when called. If I call it from a Bash shell, most of the output is suppressed by <code>A &gt; /dev/null</code>. All of the output is suppressed by <code>A &amp;&gt; /dev/null</code></p>
  
  <p>I have a python script named <code>B</code> that needs to call <code>A</code>. I want to be able to generate output from <code>B</code>, while suppressing all the output from <code>A</code>.</p>
  
  <p>From within <code>B</code>, I've tried <code>os.system('A')</code>, <code>os.system('A &gt; /dev/null')</code>, and <code>os.system('A &amp;&gt; /dev/null')</code>, <code>os.execvp('...')</code>, etc. but none of those suppress all the output from A.</p>
  
  <p>I could run <code>B &amp;&gt; /dev/null</code>, but that suppresses all of <code>B</code>'s output too and I don't want that.</p>
  
  <p>Anyone have suggestions?</p>