On Fri, 2002-06-21 at 20:10, tc lewis wrote:
> 
> you can set MAILTO within the cron entries.  i'm not sure if there's a way
> to set it globally or turn off mailing altogether.
> 
> -tcl.
> 

You can also modify the cron job to either direct output to a log file
or /dev/null if you never need to see the normal out put.  cron will not
send a mail if there is nothing to mail.  I use the following to
redirect stout to a log file so I only get errors if the program that is
called sends anything to stderr.  (I also write the scripts with this in
mind)

0 23 * * * script_to_run >> /var/log/mydir/script_to_run.log

wil run this script at 11PM every night and append the output to a file
of my choosing.  Since some of these get big I use logrotate to rotate
them periodically and keep only the desired number of old ones.

If the jobs in question are the system run ones from the /etc/cron.*
dirs then the /etc/crontab file is the one that should be looked at and
IIRC someone is seeing roots mail.  On my important boxes I have the
mailto set to my email address so I see them.

HTH
Bret



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to