http://www.cyberciti.biz/faq/disable-the-mail-alert-by-crontab-command/
Edit/Open your cron jobs, enter:
$ crontab -e
Append string >/dev/null 2>&1 to stop mail alert:
0 1 5 10 * /path/to/script.sh >/dev/null 2>&1
OR
0 1 5 10 * /path/to/script.sh &> /dev/null
crontab会写日志,日志多了需要清理
猜你喜欢
转载自haoningabc.iteye.com/blog/1109099
今日推荐
周排行