为什么 nohup 在 os.system 中的 python 脚本中不起作用?

问题描述

我尝试在集群上的 python 中使用 nohup 但失败了。我的代码如下:

import os

path = "/ldfssz1/SP_MSI/USER/"
os.system("nohup sh "+ path + "myjobs.sh &")

集群只返回这个:

nohup: ignoring input and appending output to `nohup.out'

没有 pid 返回并且作业命令没有返回任何内容。谁能给我一些想法这里发生了什么?非常感谢!

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)