title: python - how to pipe the output using popen?
body: <p>I want to <code>pipe</code> output of my file using <code>popen</code>, how can I do that?</p>
  
  <p><strong>test.py</strong>:</p>
  
  <pre><code>while True:
    print"hello"
  </code></pre>
  
  <p><strong>a.py</strong>  :</p>
  
  <pre><code>import os  
  os.popen('python test.py')
  </code></pre>
  
  <p>I want to pipe the output using <code>os.popen</code>.
  how can i do the same?</p>