cron job on 3rd sunday of every month

Hi,

Actually scheduled my test scripts on test severs as shown below. They are supposed to run on 3rd sunday of every month.
Unfortunately it ran on 2nd sunday of the month (suspecting that it will run every sunday). I am sorry if I miss something. Could you please let me know if I did any mistake here.

15 2 15,16,17,18,19,20,21 * 0 /mydir/myscriptstop.sh

content of "/mydir/myscriptstop.sh"

#!/usr/bin/ksh
# exit if today is not Sunday
dow=`date +%w`
[ $dow -eq 0 ] || exit
# the actual script is below

/home/user1/stop.sh   # example

15 4 15,16,17,18,19,20,21 * 0 /mydir/myscriptstart.sh

content of "/mydir/myscriptstart.sh"

#!/usr/bin/ksh

# exit if today is not Sunday
dow=`date +%w`
[ $dow -eq 0 ] || exit
# the actual script is below

/home/user1/start.sh   # example

I read the man page as well. But not able to notice.
IBM Knowledge Center Error

I am suspecting that,
AIX cron is evaluating "weekday" first and going with the flow and not considering the "day of the month".

please look into this.

------ Post updated at 10:29 AM ------

my bad, sorry..I found the mistake.

I was trying to run cron using "weekday" code...

15 2 15,16,17,18,19,20,21 * * /mydir/myscriptstop.sh

  15 4 15,16,17,18,19,20,21 * * /mydir/myscriptstart.sh

I believe these should work. ty

Yes, your fix is correct. It was treated as an OR: run on the given days OR on sundays. (In the math sense. In casual speach you say AND.)