use of MAILTO variable in crontab

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



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?

-- 
***          E-Mail is NOT a SECURE channel          ***
James B. Byrne                mailto:ByrneJB@xxxxxxxxxxxxx
Harte & Lyne Limited          http://www.harte-lyne.ca
9 Brockley Drive              vox: +1 905 561 1241
Hamilton, Ontario             fax: +1 905 561 0757
Canada  L8E 3C3

_______________________________________________
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