Run external program from python script
I want to be able to run a program in a python script, and capture it's output in a variable. I figured out that I can execute it with os.system(), but how do I capture it's output and store it in a variable?
|
use the subprocess module.
|
All times are GMT -5. The time now is 08:03 PM. |