[CentOS] use of MAILTO variable in crontab

Wed Jul 13 19:10:07 UTC 2011
James B. Byrne <byrnejb at harte-lyne.ca>

On Wed Jul 13 15:03:40 EDT 2011, Michael Best mbest at pendragon.org
 wrote:
> Like this:
>
> MAILTO=testaddr at harte-lyne.ca
> 30 2 * * * echo "this should be mailed"

That sets MAILTO for the entire crontab does it not?  I want to set
MAILTO differently for specific crontab entries.  Is that possible? 
How is it done?  Or do I have to pipe stuff to /usr/bin/mail
explicitly?



-- 
***          E-Mail is NOT a SECURE channel          ***
James B. Byrne                mailto:ByrneJB at Harte-Lyne.ca
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