我有一个进程
"verifyEmail"
I run this in script as verifyEmail 0 1000
现在,我该如何在shell脚本中等待这个进程执行完成后再继续下一个指令呢?verifyEmail需要运行超过60分钟。
我尝试了:
while ! checkprocess "verifyEmail"; do ##Checkprocess is a function which returns 0 or 1
sleep 60 ## based on process present or not
done
sleep 60
只会睡眠60 秒。另外,为什么它不是同步运行的?你是将其放到后台运行吗? - FatalError