Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a cronjob that has to be run every minute. And every minute cron add a new line into syslog about that. How can I suppress this behavior?

share|improve this question
add comment

2 Answers 2

up vote 6 down vote accepted

First, backup syslog.conf:

sudo cp /etc/syslog.conf /etc/syslog.conf.backup

Then, open up syslog.conf in your editor of choice, and change this:

*.*;auth,authpriv.none          -/var/log/syslog

to this:

*.*;auth,authpriv.none,cron.none          -/var/log/syslog

although the caveat is that you cannot check if your job is running.

share|improve this answer
1  
I've also uncommented cron.* /var/log/cron.log so I can check if my job is running :) –  vava Sep 14 '09 at 4:54
add comment

redirect standard output into /dev/null, while if you going get an error you'll receive an email about it:

shell.script.sh > /dev/null 2>&1
share|improve this answer
1  
It's not the job itself that floods but cron just notifies that it did run it –  vava Sep 14 '09 at 4:51
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.