Re: cron job help
Take a look at "man 5 crontab", specifically the section mentioning
Note: The day of a command's execution can be specified by two fields —
day of month, and day of week. If both fields are restricted (i.e.,
aren't *), the command will be run when either field matches the cur‐
rent time. For example,
``30 4 1,15 * 5'' would cause a command to be run at 4:30 am on the 1st
and 15th of each month, plus every Friday. One can, however, achieve
the desired result by adding a test to the command (see the last exam‐
ple in EXAMPLE CRON FILE below).
So you'd probably want something like
# Run on every second Saturday of the month
0 4 8-14 * * test $(date +%u) -eq 6 && echo "2nd Saturday"
0 12 1-7,15-21 * * [ $(date +%u) -eq 2 ] && /root/script.sh
Mark your thread as [SOLVED], use Thread Tools on forum page.