Ubuntu中文论坛
致力于Ubuntu中文推广
http://forum.ubuntu.com.cn/
wait的作用到底是什么?
http://forum.ubuntu.com.cn/viewtopic.php?t=461127
分页:
1
/
1
wait的作用到底是什么?
发表于 :
2014-06-17 22:58
由
悬崖勒马2011
a.sh: nohup sh 1.sh &
wait
nohup sh 2.sh &
sh a.sh后我想运行完1.sh,再运行2.sh,没想到1之后居然停了,没达到我要的效果。wait难道是我理解有误?
Re: wait的作用到底是什么?
发表于 :
2014-06-19 13:58
由
needle
那你应该在1.sh文件内的末尾加上nohup 2.sh&