我也來改一下,(本人超弱的)
#!/bin/bash
# 計算次數
if [ -x /home/count.txt ];
then count=1
else count=`cat /home/count.txt|wc -l`
fi
# 測試
if [ $count -lt 501 ];
then echo $count > /home/count.txt
echo "Do test : $count"
sleep 1
reboot
else
echo "test finished"
fi
這是 reboot ,sleep 的話不會 (攤)
--
All Comments