我已经设置了以下crontab –
sudo crontab -e 01 21 * * * /usr/local/bin/sqlbackup.sh -e
这应该每晚21.01运行sqlbackup.sh但它永远不会运行.
这是错误日志
cron[2339]: (root) RELOAD (crontabs/root) CRON[31600]: (root) CMD (/usr/local/bin/sqlbackup.sh -e) CRON[31599]: (CRON) error (grandchild #31600 Failed with exit status 2) CRON[31599]: (CRON) info (No MTA installed,discarding output)