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