How does one Stop cron from mailing to the user?

From: Bruce Platt (Bruce@ei3.com)
Date: Mon Sep 02 2002 - 12:25:02 EDT


When a user has an entry in their crontab, a mail message is sent to that
user each time the job runs.

I can set an alias of the form "user: /dev/null" in the aliases file, but
I just want to stop cron from sending the message on job completion, not to
stop all mail to the user. Setting MAILTO=/dev/null in the crontab doesn't
work.

Using the alias file also results in cluttering up the mail log.

I could, of course, set up a "phantom" user to run the cron job, so that the
real user gets non-cron mail, but I'd like the "perfect solution", i.e.,
having cron not send mail on job completion.

Any suggestions appreciated. I will summarize.

Regards



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:48:50 EDT