Snippets has posted 5883 posts at DZone. View Full User Profile
# 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...
kill -0 $pid >/dev/null
Discover best practices and the most useful tools for building the ideal integration architecture.
DZone's 170th Refcard is an essential reference to Camel, an open-source, lightweight, integration library. This Refcard is authored by...