How do I pipe the output of file to a variable in Python?
<p>How do I pipe the output of file to a variable in Python?</p>

<p>Is it possible? Say to pipe the output of <code>netstat</code> to a variable x in Python?</p>
