System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Stop Email notification in Crontab

SCSI Error
Regular Advisor

Stop Email notification in Crontab

Hi,

How could I get rid of these errors in crontab so it will not fill my /var/spool/mail?
it generates everytime the scheduled cron is run. This is for a specific user only.

From oracle Thu Oct 2 13:15:00 2008
Received: by hostname.domain.com (8.8.8/1.1.22.3/23Jan08-0201PM)
id NAA0000015444; Thu, 2 Oct 2008 13:15:00 +0800 (WST)
Date: Thu, 2 Oct 2008 13:15:00 +0800 (WST)
From: Oracle Administrator
Message-Id: <200810020515.NAA0000015444@hostname.domain.com>
Cron: Unable to set user environment, failure in security routines
3 REPLIES
Steven Schweda
Honored Contributor

Re: Stop Email notification in Crontab

> How could I get rid of these errors [...]

Stop using cron to run commands which fail?

Are you trying to solve the problem, or stop
the e-mail?
Kapil Jha
Honored Contributor

Re: Stop Email notification in Crontab

Yes,
Why dont you remove the entry if it is throwing the error.
WHat is the crontab entry and I suppose its that entry only which is sending you mail.
So u'll have to fix it up.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
Rob Leadbeater
Honored Contributor

Re: Stop Email notification in Crontab

Hi,

If the cron job is actually working as you expect, you should just be able to redirect the standard output and error to /dev/null.

So stick the following at the end of the offending cron job:

>/dev/null 2>&1

Cheers,

Rob