Quote:
|
Originally Posted by anksagr
Code:
# Bi-Weekly REORGCHK for db2 databases.
00 06 1-7,15-21 * * ...
for some reason it runs just the first sunday that falls between 1-7 and does not run on the sunday that falls between 15-21.
|
This would run your command
every day from the 1st thru 7th and 15th thru 21st of each month (at 6:00). So your statement saying that it just rons on the first
Sunday is not true. The following should do the restriction for the Sunday as well:
Code:
00 06 1-7,15-21 * 7 ...
The crontab specifications for the weeks are fine. If it doesn't work, maybe your cron doesn't support this format? If so, you could split this up into multiple crontab entries.