What's new

Cron jobs not running

  • 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!

prakalejas

New Around Here
Router Asus RT-N66U 376.45 firmware (same thing with AC56U)

I created simple job:

1 * * * * logger TEST

And it is simply not executed. Tried adding admin username to cron job, tried restarting router, tried adding cron job creation script in /jffs/scripts/services-start, tried restarting crond and cru services. Nothing helps.

Any ideas?

What I need is to create cron job to keep u2ec service alive. I had a script with infinite loop, but somehow it is stopped by the router :-(
 
Router Asus RT-N66U 376.45 firmware (same thing with AC56U)

I created simple job:

1 * * * * logger TEST

if you want each minute than syntax must be:

/1 * * * * logger TEST
or
*/1 * * * * logger TEST

other fields accept only numbers or given name (month, day of week) by commas

syntax
1 * * * * logger TEST - run command on first minute of each hour.
 
/1 * * * * logger TEST = SYNTAX error
*/1 * * * * logger TEST = crond[692]: crond: USER root pid 9169 yey!!! It works :)

Thank You!

if you want each minute than syntax must be:

/1 * * * * logger TEST
or
*/1 * * * * logger TEST

other fields accept only numbers or given name (month, day of week) by commas

syntax
1 * * * * logger TEST - run command on first minute of each hour.
 
At the same time, new problem occured:

logger writes this on every cron job execution (vsible on System log-General log):
crond[692]: crond: USER root pid 9760 cmd /jffs/scripts/PrintRestart.sh

tried this in services-start file:
/usr/sbin/cru a PrintRestart "*/1 * * * * /jffs/scripts/PrintRestart.sh" > /dev/null 2>&1

but still, no success disabling logging of cron job event, even if it's successful.

Any ideas?
 
restart crond with low log level.

by default
Jan 1 02:00:15 crond[362]: crond: crond (busybox 1.20.2) started, log level 8
 

Sign Up For SNBForums Daily Digest

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