[CentOS] setup schedule cron job every other week?
Brent L. Bates
blbates at vigyan.com
Wed Jan 6 15:02:19 UTC 2010
From: mcclnx mcc
> 0 0 8-31/14 * 6 /script.sh
From: John Doe <jdmls at yahoo.com>
> 0 0 8-14 * 6 /script.sh
> 0 0 22-28 * 6 /script.sh
According to the man page, neither of these will not do what the OP
wants. Both will execute the command EVERY Saturday. The first will also
execute it on the 8th and 22nd of the month. The second will execute the
command TWICE a day AND days 8-14 AND 22-28. The man pages says if any of the
day parameters match, the command is executed. Unfortunately for the OP, the
day parameters are an OR operation and not an AND operation.
--
Brent L. Bates (UNIX Sys. Admin.)
M.S. 912 Phone:(757) 865-1400, x204
NASA Langley Research Center FAX:(757) 865-8177
Hampton, Virginia 23681-0001
Email: B.L.BATES at larc.nasa.gov http://www.vigyan.com/~blbates/
More information about the CentOS
mailing list