On Sat, 16 Nov 2013 10:17:07 -0500, Tanstaafl wrote:

> >> Ok... so... the question remains - can I tell cron to send mail the
> >> same way?  
> >
> > You don't, cron sends mail via sendmail, to the recipient specified by
> > the MAILTO variable in the crontab file.  
> 
> Thanks Neil, but... you said 'You don't'... not 'You CAN'T'...
> 
> Can you elaborate on this? If this is not possible - why is it not 
> possible? In other words, if portage can do it, why can't cron?

Well, it's possible, you just patch cron to add SMTP code so that it can
send mail itself, rather than using the unix standard approach of doing
its own job and passing other tasks onto programs designed for those jobs.

Cron runs cron jobs, sendmail sends mail.


-- 
Neil Bothwick

A real programmer never documents his code.
It was hard to make, it should be hard to read

Attachment: signature.asc
Description: PGP signature

Reply via email to