crontab任务取消发送邮件

1. 方式一,每一个计划任务后加上 >/dev/null 2>&1

*/5 * * * * sh /web/adm/Shell/checkin_user_count_everyday.sh >/dev/null 2>&1

 

2.在计划任务前加上MAILTO=""

crontab -e

MAILTO=""
* * * * * /home/test/unison.sh >> /home/test/unison-run.log 2>&1

posted @ 2015-09-18 18:46  Athrun  阅读(819)  评论(0编辑  收藏  举报