0

How can i disable logging for specified item/line in crontab? (i´m on debian/raspbian)

I have a script that checks if wlan0 is up every minute, but i don't like that cron logs every minute on syslog :/

This is my crontab item:

* *     * * *   root    /home/scripts/chkwlan0    

Please, if anyone can help, i'll appreciate it.

Thanks in advance.

Gtz, Sergio.

  • what log lines do you object to? – Jasen Jan 2 '15 at 0:31
  • i have this line in syslog: Jan 1 21:13:01 hostname /USR/SBIN/CRON[16152]: (root) CMD ( /home/scripts/chkwlan0) – sergius Jan 2 '15 at 0:40
1

Ok the easieet way to blobk that log line is to not use cron to launch your script.

Have your script re-run itself every 60 seconds instead. then it need only be launched once, eg by /etc/inittab.

  • u r rite, maybe your way is better. thanks. – sergius Jan 2 '15 at 1:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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