How to idle before executing a script

Hi

I want to put a timer or whatever it could be ,a similar to sleep which will make the script to wait before executing it self

like

#!/bin/bash

sleep 30 #or another comand which will wait 30 s. and than proceed with  code but that timer should not freeze the OS .

shell code

done

I hope i was clear enough

Best on advance

sleep is fine - it does not freeze the OS. Try it out.

Thanks on reply

But im implicating the script on a startup of a busybox environment ,and that causes the freeze on start up .

Or add this before code

count=30
while [ $count -ge 0 ]

do
echo "$count    seconds to GO"
count=`expr $count - 1`
sleep 1
done
echo "Off we go!"

Put the starting script with the sleep etc. in the background then (nohup startscript.sh &).

well i think im sounding like the movie star Zac :stuck_out_tongue: ,but nohup is also not supported on my busybox system .

But i think i solved ,i`ll put a script without sleep and call other script from that only if i need them .

But if someone could help me on another logic ,how to count if a command is being processed for a long time ,than if yes kill it .