Re: use of MAILTO variable in crontab

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 07/13/2011 12:37 PM, James B. Byrne wrote:
> I want to do something like this:
>
> 30 2 * * * MAILTO=testaddr@xxxxxxxxxxxxx; echo "this should be mailed"
>
> I have searched extensively and from what I have read I believe that
> this should work.  But evidently I misapprehend how cron and MAILTO
> is supposed to work as my example does not cause any mail to be sent
> as far as I can determine from maillog.
>
> How does one specify unique MAILTOs for different cron jobs where
> the desired recipient is not the user that runs the cron job?

Like this:

MAILTO=testaddr@xxxxxxxxxxxxx
30 2 * * * echo "this should be mailed"

-Mike
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux