title: Python - subprocess.Popen not returning output
body: <p>I am using a Windows 7 machine right now have have STS installed with PyDev utility for python development.</p>
  
  <p>My code wants to login to a machine and return the output. My current code is:</p>
  
  <pre><code>        ssh = subprocess.Popen(["uname -a"], shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
          print (ssh)
          result = ssh.stdout.readlines()
          print (result)
  </code></pre>
  
  <p>This yileds an output of :</p>
  
  <pre><code>&lt;subprocess.Popen object at 0x02B35810&gt;
  []
  </code></pre>
  
  <p>But the <code>uname -a</code> command should yield <code>Linux 3.10.0-514.10.2.el7.x86_64 #1 SMP Mon Feb 20 02:37:52 EST 2017 x86_64 x86_64 x86_64 GNU/Linux
  </code></p>
  
  <p>Any idea why I cant capture the output ? </p>