To do this you have to edit the /etc/sysconfig/crond file and change the CRONDARGS (crond arguments) string from this: CRONDARGS= You can simply disable the mail feature in crond. If one of the cron jobs exits with an error code, you may never know about it. This method is not preferred as it would also disable any error messages that you might want to see. This will effectively disable email from crond as it will be configured to have no email address. Open /etc/crontab in your favorite editor and change the line that reads: MAILTO=root You can edit the /etc/crontab file and change the MAILTO variable to blank. Here we will discuss a few possible solutions. There are several ways to stop this behavior. By default this is set to "root", so the local root account will receive all mail from cron. It uses the MAILTO variable that is set in /etc/crontab to determine who receives this mail. ![]() When the Linux crond runs a scheduled job, it typically sends an email to root when the job is complete.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |