开发者

IPython: get return status from subprocess

开发者 https://www.devze.com 2023-03-28 13:50 出处:网络
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).

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().

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号