What's new

asuswrt crond jobs scheduled on weekends

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

pseu_asus

Occasional Visitor
I have a daily job to run every day, however, I want to schedule it in different time slot during weekend(Saturday and Sunday), here is what I have done on Asuswrt cru

1) 50 8,13 * * 1-5 /bin/sh /jffs/scripts/daily_job/listwan-rc-1.sh #listwan-rc-weekday#
2) 50 2 * * 6,7 /bin/sh /jffs/scripts/daily_job/listwan-rc-1.sh #listwan-rc-weekend#

The first one seems correct, no error output in syslog. The 2nd one seems having some syntax errors, here is the syslog:

Mar 26 18:18:30 crond[1276]: user admin: parse error at 6,7​
Mar 26 18:28:30 crond[1276]: user admin: parse error at 6,7​
Mar 26 18:38:30 crond[1276]: user admin: parse error at 6,7​
Mar 26 18:48:30 crond[1276]: user admin: parse error at 6,7​
Mar 26 19:01:50 crond[1276]: user admin: parse error at 6,7​
Mar 26 19:16:30 crond[1276]: user admin: parse error at 6,7​
Mar 26 19:31:30 crond[1276]: user admin: parse error at 6,7​
Mar 26 19:46:30 crond[1276]: user admin: parse error at 6,7​

Should I change it to:

50 2 * * SAT,SUN /bin/sh /jffs/scripts/daily_job/listwan-rc-1.sh #listwan-rc-weekend#

or

50 2 * * 6,0 /bin/sh /jffs/scripts/daily_job/listwan-rc-1.sh #listwan-rc-weekend#

or something else?

Thanks,
 
0,6 seems like a good choice.
 
Thanks, I changed it to 0,6 and monitor for a while, the parse error did not show up any more. Will leave it for 24 hours. If it is good, the thread could be closed.
 

Similar threads

Sign Up For SNBForums Daily Digest

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