經安全檢測,此網站為安全網站,請放心前往原始網址!

linux 開機運行sh 角本無限迴圈幾個命令

#!/bin/sh while : do ntpdate 192.168.0.235 sleep 1 done 保存這個腳本,比較叫file.sh 然後給他執行許可權 chmod +x file.sh 設置開機自動啟動 cp file.sh /etc/rc3.d/S99ntp cp file.sh /etc/rc5.d/S99ntp 時間可以自己調,我上面寫sleep 1 是停一秒 shicaoyi 2011-4-14

wapiknow.baidu.com

網址安全性掃描由 google 提供