Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Aug 2006 14:06:10 -0400
From:      Bill Moran <wmoran@collaborativefusion.com>
To:        David King <dking@ketralnis.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: e-mail from cron
Message-ID:  <20060823140610.73771aae.wmoran@collaborativefusion.com>
In-Reply-To: <32E582EE-9F5C-4426-8DAB-AB109E838C48@ketralnis.com>
References:  <012e01c6c6bd$29966ac0$d51a2cd0@lisac> <20060823102841.05d85d88.wmoran@collaborativefusion.com> <32E582EE-9F5C-4426-8DAB-AB109E838C48@ketralnis.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In response to David King <dking@ketralnis.com>:

> >> to this:
> >>
> >> # Perform daily/weekly/monthly maintenance.
> >> 1       3       *       *       *       root    periodic daily   
> >> 2>&1 | sendmail service@jellico.com
> > [...]
> > However, you might find it easier to just add the following line to  
> > the
> > top of the crontab:
> > MAILTO=service@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

You're correct.  That's my mistake and I apologize for the misinformation.

Simply put, periodic does not generate any output to either stdout or
stderr.  It has its own system for determining who to mail to.  See
/etc/defaults/periodic.conf or appropriate man pages for the details.

-- 
Bill Moran
Collaborative Fusion Inc.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060823140610.73771aae.wmoran>