Re: MAILTO=/dev/null
Am 2006-03-11 21:14:49, schrieb Tony Heal:
> I have a file named 'custom' in /etc/cron.d and the first line in this file
> is MAILTO=/dev/null.
> I have a file that is run every minute that tests permissions on a file and
> emails me it they have changed. This script is to troubleshoot another
> problem.
> * * * * * root /usr/local/bin/permissions_test.pl
>
> My problem is that now I am getting an email every minute stating
> /dev/null@xxxx.com is an unbootable address.
What about 'man cron' ?
+---[ man 'cron' ]--------------------------------------------------
|
| CRON(8) CRON(8)
|
|
|
| NAME
| cron - daemon to execute scheduled commands (Vixie Cron)
|
<snip>
| cron then wakes up every minute, examining all stored
| crontabs, checking each command to see 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 variable in the crontab, if such
| exists). The children copies of cron running these pro-
| cesses have their name coerced to uppercase, as will be
| seen in the syslog and ps output.
<snip>
+-------------------------------------------------------------------
or 'man 5 crontab' ?
+---[ man '5 crontab' ]---------------------------------------------
|
| CRONTAB(5) CRONTAB(5)
|
|
| NAME
| crontab - tables for driving cron
|
<snip>
| In addition to LOGNAME, HOME, and SHELL, cron(8) will look
| at MAILTO if it has any reason to send mail as a result of
| running commands in ``this'' crontab. If MAILTO is defined
| (and non-empty), mail is sent to the user so named. If
| MAILTO is defined but empty (MAILTO=""), no mail will be
| sent. Otherwise mail is sent to the owner of the crontab.
+----------------------------------------------------------------------------------
So all you need to know, is written here.
Please do a RTFM.
Greetings
Michelle Konzack
Systemadministrator
Tamay Dogan Network
Debian GNU/Linux Consultant
--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack Apt. 917 ICQ #328449886
50, rue de Soultz MSM LinuxMichi
0033/3/88452356 67100 Strasbourg/France IRC #Debian (irc.icq.com)
Reply to: