Re: cron: different job different mail

2010-08-25 Thread Joel Roth
On Wed, Aug 25, 2010 at 07:12:21PM +, T o n g wrote:
 Hi,
 
 I know I can set MAIL in cron jobs so as to define where the cron 
 execution log will send to. but,
 
 I'm wondering if it is possible to set different email destinations for 
 different cron jobs.

I wonder how direct and elegant the solution needs to be.

If you send the cron mail to one address, you could apply
a filter such as procmail (I use Email::Audit)
to forward or sort to the desired destinations.

Regards,

 Thanks
 
 -- 
 Tong (remove underscore(s) to reply)
   http://xpt.sourceforge.net/techdocs/
   http://xpt.sourceforge.net/tools/
 
 
 -- 
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/i53pul$tg...@dough.gmane.org
 

-- 
Joel Roth


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20100825230725.ga12...@sprite



Re: cron: different job different mail

2010-08-25 Thread Kevin Ross

 On 08/25/2010 12:12 PM, T o n g wrote:

Hi,

I know I can set MAIL in cron jobs so as to define where the cron
execution log will send to. but,

I'm wondering if it is possible to set different email destinations for
different cron jobs.

Thanks


You could put a different file for each email address in /etc/cron.d.  
You could also set up your cron jobs as user jobs and not system jobs, 
then the output is emailed to the user instead of root.



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4c75aec2.7050...@familyross.net