Click to See Complete Forum and Search --> : Pause between commands in scripts


BeE-tje
01-19-2003, 06:40 PM
Does somebody know how you can insert a pause between running commands in a script. For example:

I have 2 gameservers which I wanna start at startup wit my linux box. But because of heavy load every 30 minutes, I wanna start them up 5 minutes later .. so I do not have the double load.


#!/bin/bash
/home/user1/script_run
#pause
/home/user1/script_run

Can somebody help me on this ?

Thanks !!

viperlin
01-19-2003, 06:51 PM
"sleep 1"
that should pause for 1 second, if i remember corectly

bwkaz
01-19-2003, 07:00 PM
man sleep should give you some ideas.

Edit: beaten! :p

viperlin
01-19-2003, 07:02 PM
lol, i do that too, try to have the first correct reply, but have someone beat you while you are typing the instructions

BeE-tje
01-19-2003, 07:10 PM
Thanks for the fast replies !! :D