Question
Actually I’m rookie in python , as you know we have 2 methods in PHP passthru
and system
What’s the equivalent of passthru and system for python?
Answer
the subprocess
module implements handling of subprocesses:
http://docs.python.org/library/subprocess.html
have a look at http://stackoverflow.com/questions/2101426/parsing-a-stdout-in-python
Check more discussion of this question.