Hayl
10-28-2002, 09:58 PM
is there a command to make a bash script pause for a specified number of seconds?
|
Click to See Complete Forum and Search --> : bash pause Hayl 10-28-2002, 09:58 PM is there a command to make a bash script pause for a specified number of seconds? Wallex 10-28-2002, 10:04 PM sleep n should work for most cases. Altough n is in seconds, so it won't work if you want a very small pause. I've seen that command used in some scripts so it should work.. it is in /bin/sleep, afterall. Hayl 10-28-2002, 10:07 PM thanks. Wallex 10-30-2002, 01:55 PM Hey I just found out there's also a usleep command (to wait for the amount of microseconds you need), this one should be useful for very brief pauses. There seems to be a nanosleep command out there somewhere as well... I can't quite find it, but I guess most people don't need it. I found out about these while trying to install Oaf as it checked for the availability of those commands. justlinux.com
Copyright Internet.com Inc. All Rights Reserved. |