title: python subprocess.Popen
body: <p>I am having a difficult time understanding how to get python to call a system command with the <code>subprocess.Popen</code> function.</p>
  
  <pre><code>the_file = ('logs/consolidated.log.gz')         
  webstuff = subprocess.Popen(['/usr/bin/zgrep', '/meatsauce/', the_file ],stdout=subprocess.PIPE)
    for line in webstuff.stdout:
      print line
  </code></pre>
  
  <p>Trying to get python to build another file with my search string.</p>