Python Command Line input?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1450393/how-do-you-read-from-stdin-in-python">How do you read from stdin in python</a>  </p>
</blockquote>



<p>Whats the best/easiest way to get information from a command line.</p>

<p>For example Im going to be running a bunch of shell scripts that return either:</p>

<pre><code>200 SOLUTIONS_REVISION 
or 
400 SOLUTIONS_REVISION
</code></pre>

<p>after I run each script.
I need to capture these "returned" strings in python as a string (to check if it passes (200) or fails (400). What would be the best way to do this (im a complete newb to python and my search seemed to mainly return getting command line arguements.</p>

<p>Thanks (also python 2.x preferably)</p>
