Pad*_*ddy 0 python linux bash shell
我不确定&这个bash脚本中的命令之后是做什么的.
python alt_pg ${args} &
Run Code Online (Sandbox Code Playgroud)
我正在修改的脚本的原始版本在命令开头不使用'python'是否与'&'有关?
&在行的末尾python alt_pg ${args}在你的linux shell下的"后台"中运行; 但是,脚本仍与shell关联.因此,如果shell停止,脚本也会停止.
附注:您可以使用,取消脚本与shell的关联nohup python alt_pg ${args} &.如果您生成这样的脚本,则在退出shell后脚本仍然存在.