Guys, is there a script or command?
how to disable cron emails, but only for logrotate only not for other logs
Guys, is there a script or command?
how to disable cron emails, but only for logrotate only not for other logs
Cron mails you your output. To prevent the creation of mail messages from cron, don't generate any output. Redirect stdout and stderr to /dev/null for those commands you never want to see mail for.
true, but only exist in user's crontab ..
but what if a system logs?
like for example,
in /etc/cron.daily
you have
logrotate
cleaner
Then you only want to disable the email of /etc/cron.daily/logrotate
not the others
Did you consider to empty the MAILTO variable? man cron
: