[OpenIndiana-discuss] Email cron job results

Timothy Coalson tsc5yc at mst.edu
Fri May 24 02:46:34 UTC 2013


On Thu, May 23, 2013 at 9:17 PM, DormitionSkete at hotmail.com <
dormitionskete at hotmail.com> wrote:

> How do I get cron to email me the results of a cron job?
>
> In Linux, cron had a "MAILTO=myadmin" setting in my crontab file.  I
> haven't been able to find anything in OI / Solaris about the MAILTO
> setting.  I tried putting it in /etc/default/cron, and that didn't work,
> either.
>
> Any help will be *greatly* appreciated.
>

I did it the quick and dirty way: I put an email address in a .forward file
in ~root/ to send all root's mail to it, including root's cron jobs.

Tim


More information about the OpenIndiana-discuss mailing list