linux-wait

创建:
更新:

Content

for pid in $(jobs -p); do
    wait $pid
    status=$?
    if [ $status != 0 ]; then
        echo " $pid status is $status have some error!" >> your_log
    else
        echo "$pid status is $status success!" >> your_log
    fi
done

Reference

wait(1p) - Linux manual page


千里之行,始于足下
本站总访问量 本文总阅读量