我有一個過程shell腳本等到過程結束
"verifyEmail"
I run this in script as verifyEmail 0 1000
現在怎麼辦我等到這個過程是在shell腳本上移動到下一個指令之前執行完畢?它需要超過60分鐘的verifyEmail運行
我試圖
while ! checkprocess "verifyEmail"; do ##Checkprocess is a function which returns 0 or 1
sleep 60 ## based on process present or not
done
超過60分鐘來運行?這是一些激烈的驗證。 「睡眠60」只能睡60 *秒*。另外,它爲什麼不同步運行?你在背景嗎? – FatalError 2013-03-19 19:23:38