Koozali.org: home of the SME Server

a bash command to pause?

Rob

a bash command to pause?
« on: May 27, 2002, 08:46:28 AM »
Hi

Anyone know a command that i can use to make a script pause? I want the script to wait till the cdrom is mounted.

TIA
Rob

Rob Wellesley

Re: a bash command to pause?
« Reply #1 on: May 27, 2002, 08:47:26 AM »
doh - forgot to check the

"Email replies to this thread, to the address above."

checkbox

Des Dougan

Re: a bash command to pause?
« Reply #2 on: May 27, 2002, 09:48:48 AM »
Rob,

"sleep" should do what you want:

sleep
This is the shell equivalent of a wait loop. It pauses for a specified number of seconds, doing nothing. This can be useful for timing or in processes running in the background, checking for a specific event every so often).    
1 sleep 3
2 # Pauses 3 seconds.

From the "Advanced BASH scripting guide"


Des Dougan