Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.
Computer Hope forum e-mail issues and down time
0 Members and 1 Guest are viewing this topic.
please help me to fix my script trying to use sleep 2 minutes while the system is sleeping i want to print out same message every 5 secondsthankst=`date +%S`while [ t = t+120 ]dosleep 5echo "this program will end in 2 minute"done
t=$(date +%S)t=`echo $t+120 |bc`echo "this program will end in 2 minutes from now"sleep $texit