Librenix  
(Show all Scripting articles . . .
)  
Headlines | Linux | Apps | Coding | BSD | Admin | News
Information for Linux System Administration 

Scripting: wait vs. sleep

Up
vote
Down

When coordinating parallelized processes, wait is the essential command.
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.

How do you decide which is appropriate for the script at hand? In some cases it won't make any difference to the successful completion of the script. Other times it can be the difference between success and total failure to produce the expected results.
 read more | mail this link | score:8100 | -Ray, March 29, 2005
More Sysadmin articles...

Buy Art Online with a Free Return Policy

admin headlines

Tutorial: Install Nginx, PHP5, MySQL on Ubuntu 13.04

Create a Fiber Channel SAN with SCST and QLogic HBA on Linux Debian 6

Add WiKID Two-Factor Authentication to OpenVPN Community On Ubuntu 13.04

Virtual Hosting: Proftpd, MySQL on Ubuntu 12.10

Tutorial: PrestaShop 1.5.x on Nginx (Debian 7/Ubuntu 12.10

Virtual Users/Domains with Postfix, Courier, MySQL, SquirrelMail (CentOS 6.3)

 

Firefox sidebar

Site map

Site info

News feed

Features

Login
(to post)

Search

 
Articles are owned by their authors.   © 2000-2012 Ray Yeargin