liunx 小白 筆記 :
crontab -e 編輯
0 3 * * * nohup /opt/ccsing/php/bin/php /opt/ccsing/mysql/backup/mysql_backup.php >/dev/null 2>&1 &
0 3 * * * nohup ntpdate asia.pool.ntp.org >/dev/null 2>&1 &
0 3 1 * * nohup sh /cleanlog.sh >/dev/null 2>&1 &
0 3 * * * find /opt/ccsing/mysql/backup/mysql_backup/ -mtime +15 -type f|xargs rm -rf 2>&1 >/dev/null &
*/5 * * * * /opt/ccsing/php/bin/php /opt/ccsing/wwwroot/web/whhd_cms/scripts/transcode_asyn.php
*/5 * * * * /opt/ccsing/php/bin/php /opt/ccsing/wwwroot/web/klmy-new/RPC/videoTranscode.php
crontab -l 檢視
service crond restart 重啟
注意 :
程式碼裡面去掉迴圈 ;