[root@mw1 postfix]# man cron linux
DESCRIPTION post
Cron searches /var/spool/cron for crontab files which are named after accounts in crontabs found are loaded into memory. Cron also searches for /etc/crontab and the spa
files in the directory, which are in a different format (see crontab(5) ). Cron then wakes up every minute, examining all stored crontabs, checking each command to see orm
if it should be run in the current minute. When executing commands, any output is mailed to the owner of the crontab (or to the user named in the MAILTO environment crontab
variable in the crontab, if such exists). it
(注意:若是sendmail或者postfix正常運行,則會在/var/mail目錄下產生大量的郵件,也會堆積) form
2, 解決方案: 原理
在cron的第一行加入 MAILTO=""即可,這樣執行當前用戶的Cron時,不會發送郵件。 file
Please add the MAILTO="" in the head of cron , please see the blow sample. command
[root@mw1 postfix]# crontab -e
MAILTO=""
*/5 * * * * /opt/OCMonitor/bin//ocSysMonitor -top -sar –netfmt