shell腳本實現每秒執行任務

一:腳本 #!/bin/sh while [ true ]; do /bin/sleep 1 echo 1 >>/root/bo.txt /bin/date >>/tmp/date.txt done   注意:紅顏色裏邊可以隨便加內容,腳本記得給可執行的權限 二:後臺運行 nohup /root/beifen/ceshi.sh 2>&1 >/dev/null &   或者 nohup sh /ro
相關文章
相關標籤/搜索