當 cron 無法執行時,請更改 /opt/etc/crontab 權限為 600 後重啟 cron
chmod 600 /opt/etc/crontab
如要添加 cron 日誌則可使用下列方式加入
* * * * * user /tmp/test.sh >> /opt/var/log/cron.log 2>&1
不使用日誌則
* * * * * user /tmp/test.sh 2> /dev/null
最後修改: a00403a (2018-06-06 10:26:13)