On Saturday 14 November 2015 21:25:47 Kynn Jones wrote:

> On Sat, Nov 14, 2015 at 8:36 PM, Gene Heskett <ghesk...@shentel.net> 
wrote:
> > On Saturday 14 November 2015 17:58:59 Kynn Jones wrote:
> >> I'm trying to set up a `cron` job that will send me mail for some
> >> outputs.
> >>
> >> In my `crontab` I have the `MAILTO` variable set to my email
> >> address, as well as the directives
> >>
> >> * * * * * /bin/date >> /tmp/debug_cron
> >> * * * * * /bin/date >&2
> >
> > On the machine, MAILTO: is not normally to your email address, but
> > usually is username@localhost.
>
> Oh, I see.  That makes cron's mail feature significantly less
> useful/convenient than I thought.
>
> Thanks!
>
> kj

Works just fine.  I get all the mails from clamscan, amanda, and 
spamassassin's utilities that way.  The idea is that when a background 
task is done, it sends you an email with the results.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>

Reply via email to