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

Setting MAILTO to various address in the same crontab?



If I want the output of various cron jobs sent to more than one e-mail
address, is there anything wrong with doing the following?

# beginning of crontab
*/10 * * * *   /path/to/job0
MAILTO=address1@example.com
02 03 * * *    /path/to/job1
03 04 5 * *    /path/to/job2
MAILTO=address2@example.net
06 07 * * *    /path/to/job3
# end of crontab

Experimentation suggests that it works, but are there any pitfalls?

-- 
Thanks,
Adam



Reply to: