Re:Cronic - A cure for Cron's chronic email problem
by asjo on Friday May 25, 2012 @08:59AM
(#4023257)
You can set MAILTO by itself between the job lines in the crontab; e.g.:
[email protected]
* */10 * * * script1
5 * * * * script2
[email protected]
* * * * * script3
Any output from script1 and 2 will be sent to user1 and any from script3 to user2.
Re:Cronic - A cure for Cron's chronic email problem
by Nick_C on Friday May 25, 2012 @09:54PM
(#4026153)
Not all cron daemons. Vixie cron can do this, but Dillon's cron, which is a lightweight cron daemon with extra features, can't.
Re:Cronic - A cure for Cron's chronic email problem
by asjo on Saturday May 26, 2012 @08:24AM
(#4027162)
Thanks for the clarification.
Re:Cronic - A cure for Cron's chronic email problem
by Dobbs on Friday May 25, 2012 @01:43AM
(#4022106)
blahscript.sh | mail -s "Subject" [email protected]
* * * * * [email protected] blahscript.sh