e-mail from cron

David King dking at ketralnis.com
Wed Aug 23 17:57:04 UTC 2006


>> to this:
>>
>> # Perform daily/weekly/monthly maintenance.
>> 1       3       *       *       *       root    periodic daily   
>> 2>&1 | sendmail service at jellico.com
> [...]
> However, you might find it easier to just add the following line to  
> the
> top of the crontab:
> MAILTO=service at jellico.com
> Which will cause all mail generated by the jobs in that file to be  
> sent
> to the provided address.

Is that true? MAILTO should change the destination of the output of  
cron jobs, but periodic handles its own output


More information about the freebsd-questions mailing list