如何讓linux自動sleep/reboot 500次 - Linux
By Hedwig
at 2009-10-21T19:19
at 2009-10-21T19:19
Table of Contents
我也來改一下,(本人超弱的)
#!/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 的話不會 (攤)
--
Tags:
Linux
All Comments
Related Posts
IIS on Linux?
By Frederic
at 2009-10-21T09:23
at 2009-10-21T09:23
如何讓linux自動sleep/reboot 500次
By Lucy
at 2009-10-21T04:04
at 2009-10-21T04:04
想請問個人pc能灌rhel4當工作站嗎?
By Heather
at 2009-10-20T23:40
at 2009-10-20T23:40
NAT架設完成後的一點問題
By Ula
at 2009-10-20T22:57
at 2009-10-20T22:57
有關ipv6 tunnel
By Selena
at 2009-10-20T22:46
at 2009-10-20T22:46