Executing a command and storing its output in a variable
<p>I'm currently trying to write a python script that, among many things, calls an executable and stores what that executable sends to stdout in a variable. Here is what I have:</p>

<pre><code> 1 #!/usr/bin/python
  2 import subprocess
  3 
  4 subprocess.call("./pmm", shell=True)
</code></pre>

<p>How would I get the output of pmm to be stored in a variable?</p>
