Scheduling bi-weekly through cron

Is there a way in AIX to schedule a script to run bi-weekly through cron?

I have a script that needs to run every other Wednesday, and this is what I thought I had to enter in the crontab file:

00 08 * * 3/2 /home/user/user.script

It didn't like that. It reports a syntax error. I'm almost positive that in Linux and/or Solaris something like that will work, or I may be totally off....:frowning:

Any suggestions, would be greatly appreciated!

Thanks in advance!

how about

00 08 1-7,15-21 * 3 /home/user/user.script

This should give you the 1st and 3rd web of every month.

Thanks a bunch, daveisme!! You're the bomb...!! I'd never thought of that..!

I think day of the week is an "or" rather than an "and". I've been bitten by this before. From the man page.

Try this:

00 08 * * 3  [[ $(expr `date +%W` % 2) = 0 ]] && /home/user/user.script

depending on the bi-weekly cycle you may need a "= 1" instead.

I guess it will run from 1-7 & 15-21, and every wednesday. so how does it go bi-weekly.