IPython: get return status from subprocess
I am using IPythons getoutput()
to run a process in background. Which is nice as it开发者_开发技巧 does not open a separate window on my machine (I'm using the IPython shell inside Spyder IDE).
Is there a way capture the return status from the subprocess ?
Take a look at the subprocess module: http://docs.python.org/library/subprocess.html
Specifically, take a look at popen().
精彩评论