What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Supress log output?

Bamsefar

Senior Member
So I have this small job running every minut, and it is fired by cru. However each run is logged in the system log:
Jan 4 21:22:01 crond[763]: crond: USER admin pid 14333 cmd /jffs/scripts/CheckIfHome
Is there any way to supress this - I have no use for this, and it generates 1440 lines per day, for no use...?
 
It's something that I'd wondered myself. But as you asked I thought I'd look at it a bit more.

A solution would be to change the log level of crond to something higher than 8 as follows:

Code:
# killall crond
# crond -l 9
 
I have a dual wan setup, with a 3g dongle set in fail over. The issue is that while the ADSL is working, the 3G connection is in standby and gets disconnected by the 3G operator (H3G) every 360 minutes. This floods the router's log with the following code every 360 minutes:
Code:
Jan  5 09:58:08 pppd[587]: LCP terminated by peer
Jan  5 09:58:08 pppd[587]: Connect time 360.0 minutes.
Jan  5 09:58:08 pppd[587]: Sent 106590 bytes, received 0 bytes.
Jan  5 09:58:08 pppd[587]: Modem hangup
Jan  5 09:58:08 pppd[587]: Connection terminated.
...
...
...
...
...
...
...
...
...
...
...
Is there a way I can disable this logging?
Thanks for any idea.
 
Last edited:

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top