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

Re: Silent Cron Jobs



On Wed, Mar 26, 2008 at 10:05:53AM -0400, Curt Howland wrote:

> Well, yes, it works, but I get mail sent to me by cron explaining that 
> the job executed successfully.
> 
> I'd prefer not to get the mail. I don't get mail for any of the other 
> jobs in cron.daily, and I don't understand enough of bash scripting 
> to see how mine is different from the others.


One way to do it is to add '> /dev/null 2>&1' to the crontab entry.

Regards
Johann
-- 
Johann Spies          Telefoon: 021-808 4036
Informasietegnologie, Universiteit van Stellenbosch

     "Casting all your care upon him; for he careth for
      you."             I Peter 5:7  


Reply to: