Capture Program Output on Python – subprocess.check_output()

Run an external program, capture output. With pipe support. Prequisites: command line, Python hello world. One Liner Well, two lines if you count module import. Try it out in a python console: $ python >>> import subprocess >>> subprocess.check_output(“echo hello … Continue reading

Posted in Uncategorized | Tagged , , , , , | Comments Off on Capture Program Output on Python – subprocess.check_output()