Retrieving the output of subprocess.call() [duplicate]

This question already has answers here: Store output of subprocess.Popen call in a string [duplicate] (15 answers) Closed 3 years ago. How can I get the output of a process run using subprocess.call()? Passing a StringIO.StringIO object to stdout gives this error: Traceback (most recent call last): File “<stdin>”, line 1, in <module> File “/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py”, … Read more