How does one Stop cron from mailing to the user?

From: Bruce Platt <Bruce_at_ei3.com>
Date: Mon, 02 Sep 2002 12:25:02 -0400

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
Received on Mon Sep 02 2002 - 16:25:17 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:43 NZDT