定时一分钟:
1、for循环执行:
#!/bin/bash
for ((i=1; i<= 10000; i++))
do
count=0
echo "Number of execution scripts : $i"
#要执行的脚本
bash /root/shell/stopthree
for ((k=1; k<= 60; k++))
do
sleep 1
((count++))
echo "waiting $count seconds to excent"
done
done
2、watch指令
watch -n 60 -d "bash /root/shell/stop"