What's new

asuswrt crond jobs scheduled on weekends

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,
 
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

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!

Staff online

Back
Top