标签: python-2.7 subprocess nohup
下面是代码。脚本执行成功,但nohup.out未创建。请对此提供帮助。
import subprocess as sp script = sp.Popen(['nohup', './test.sh', '-i','test'],stdout=sp.PIPE,stderr=sp.PIPE) script = script.stdout.read().strip() error = script.stderr.read().strip() print script print error