Suppose I have a line in my crontab like:
0 7 * * 5/2 <do something>
This looks like it will run every other Friday, but I'm not sure I trust it. Does it run on Fridays of even weeks of the year, Fridays of even weeks of the month, Fridays of even weeks since 1970-01-01, or what? (Assume Vixie cron, if it makes any difference.)
Also, how would you get it to run on odd weeks instead of even?
I don't think that'll do what you want. That looks more like it would run on Fridays and 2 days of the week after that (days 5, 7, 9, etc.). This would run every Friday and Sunday (both 0 and 7).
I don't think you can specify every-other-week or every-other-Friday in crontab alone. You'll probably have to run it every week and check inside your script whether it's the week to run.
Frank --------------------------------------------------------------------------- Frank Sorenson - KD7TZK Systems Manager, Computer Science Department Brigham Young University [EMAIL PROTECTED]
--------------------
BYU Unix Users Group http://uug.byu.edu/
The opinions expressed in this message are the responsibility of their
author. They are not endorsed by BYU, the BYU CS Department or BYU-UUG. ___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
