Linux.com: CLI Magic: Wait or Sleep?
Mar 29, 2005, 05:30 (2 Talkback[s])
(Other stories by Jim Westbrook)
WEBINAR: On-demand Event
Replace Oracle with the NoSQL Engagement Database: Why and how leading companies are making the switch REGISTER >
"Usually, you want a shell script to just run to completion, one
command after another. There are times, however, when a sequence of
events includes a step upon which subsequent steps depend for
successful execution. For these times, two useful commands are wait
and sleep, both of which cause a delay in the script execution.
Updated code samples
"The wait command man page simply states that it pauses script
execution until a specified process ID completes. The man page for
the sleep command is a single line stating that it causes a script
to pause for specified period of time..."