title: python getoutput() equivalent in subprocess
body: <p>I want to get the output from some shell commands like <code>ls</code> or <code>df</code> in a python script. I see that <code>commands.getoutput('ls')</code> is deprecated but <code>subprocess.call('ls')</code> will only get me the return code.</p>
  
  <p>I'll hope there is some simple solution.</p>