Possible Duplicate:
How do you read from stdin in python
Whats the best/easiest way to get information from a command line.
For example Im going to be running a bunch of shell scripts that return either:
200 SOLUTIONS_REVISION
or
400 SOLUTIONS_REVISION
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.
Thanks (also python 2.x preferably)