Wait For Other Process To Finish
Join the DZone community and get the full member experience.Join For Free
# There's another process you want to wait on. In this example, # you know the pid, and it's contained in the file $PID_FILE. while ps -p `cat $PID_FILE` > /dev/null; do sleep 1; done # Now you can continue knowing that process has finished...
Opinions expressed by DZone contributors are their own.