#!/usr/local/bin/bash
while :; do
sh /etc/mything
sleep 30
done
#!/usr/local/bin/bash
Counter=0
while [ $Counter -lt 2 ]
do
sh /etc/mything
Counter=$(expr $Counter + 1)
if [ $Counter -ge 2 ]
then exit
fi
sleep 30
done
Ricky said:But after start the script
[CMD=""]/etc/mything[/CMD]
I can't do anything else, unless I break it.
Is there anything I can do?
nohup /etc/mything &