python system call
<p>having a difficult time understanding how to get python to call a system function...</p>

<pre><code>the_file = ('logs/consolidated.log.gz')         
webstuff = subprocess.Popen(['/usr/bin/zgrep', '/meatsauce/', the_file ],stdout=subprocess.PIPE) % dpt_search
    for line in webstuff.stdout:
        print line
</code></pre>

<p>Trying to get python to build another file with my search string.</p>

<p>Thanks!</p>
