Python provides a lot of method to read output from a just executed shell. However many of them has been deprecated(Not recommened). But subprocess works at present compared to other methods.
1 2 3 4 5 6 7 8 9 10 11 12 |
|
A detailed description about subprocess has been written down here. http://docs.python.org/2/library/subprocess.html