1 |
On Sat, 16 Nov 2013 10:17:07 -0500, Tanstaafl wrote: |
2 |
|
3 |
> >> Ok... so... the question remains - can I tell cron to send mail the |
4 |
> >> same way? |
5 |
> > |
6 |
> > You don't, cron sends mail via sendmail, to the recipient specified by |
7 |
> > the MAILTO variable in the crontab file. |
8 |
> |
9 |
> Thanks Neil, but... you said 'You don't'... not 'You CAN'T'... |
10 |
> |
11 |
> Can you elaborate on this? If this is not possible - why is it not |
12 |
> possible? In other words, if portage can do it, why can't cron? |
13 |
|
14 |
Well, it's possible, you just patch cron to add SMTP code so that it can |
15 |
send mail itself, rather than using the unix standard approach of doing |
16 |
its own job and passing other tasks onto programs designed for those jobs. |
17 |
|
18 |
Cron runs cron jobs, sendmail sends mail. |
19 |
|
20 |
|
21 |
-- |
22 |
Neil Bothwick |
23 |
|
24 |
A real programmer never documents his code. |
25 |
It was hard to make, it should be hard to read |