[illumos-Developer] webrev: 374 cron should send more useful mail

Kyle McDonald kmcdonald at egenera.com
Tue Oct 26 06:08:02 PDT 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 


On 10/26/2010 8:11 AM, Joshua M. Clulow wrote:
> The standard permits implementations to provide a method to
> overwrite
>> HOME, LOGNAME, PATH, and SHELL.
>
> Well we're already allowing TZ to be over-ridden beyond what's
> listed in the standard then.
>
>> The standard says that the way mail is send is implementation
>> specific method, so it would be permitted to implement an
>> enhancement for tayloring the mail Subject.
>
> Well, that's what I've done -- implemented an enhancement for
> tailoring the mail Subject.
>
Hi,

While I hate to copy things from linux, I have found this additional
variable to be useful, especially in root's crontab:

MAILTO=admins at foo.bar.com

I know you can just alias root to the other mailing list in
/etc/aliases, but since this works for all  the jobs that follow it
and can be listed more than once, it does allow different jobs to be
mailed to diferent lists.

Before I discovered this, I did what another user mentioned, and just
made the script send the mail itself. Which works, but ends upwith a
lot of repeated code - especially if you want logic to only send mail
when there is output.
It's nice having that logic centralized in cron.

 -Kyle

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (MingW32)
 
iQEcBAEBAgAGBQJMxtKyAAoJEEADRM+bKN5wrLoIAJIM6m6J92MWCoFDM37o0/rc
xGRtN5YATCP1gy+5JdgBxXMKfY0hyECT2DpFiq0GrEbKXDP6ezjWuGe432eG+kdD
RKiI4GVXE41rDJk0G6dXayQszS8pLMp90cSzDd4D8GnzS8ex2PZ2hd6v4nJwjcuZ
UL4noYT9L2ZDT3eya2lfuF4XTMpOj/6IIJhWuYXNTD4KrJ94Ky8fae2r+HgfEVHk
zv2IPHT1RyKUpG4mHFpkGTo8g9+KN/lag0wmgUglrPhIXA8De++YpOggZY6L+J/g
ebEs5gG33u80NWD8M6WzWZtc/0HUcBno1zMrn0GRd6f7WudVANFcOCR6vzJ27K0=
=kELR
-----END PGP SIGNATURE-----




More information about the Developer mailing list