[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Crontab a settimane alterne



Homer S. wrote:
... 1-7 * 1 ...
... 15-21 * 1 ...
... 28-31 * 1 ...

che mi garantisce l'esecuzione ogni primo, terzo (e se presente,
quinto) lunedì del mese, ma questo non è esattamente ciò che mi serve,
dato che a seconda del mese potrei avere o meno due lunedì consecutivi
in cui il job viene eseguito.

In realta' quell'esecuzione avviene per piu' di 17 giorni al mese...
Dal man crontab:

Note: The day of a command's execution can be specified by two fields --
      day of month, and day of week.  If both fields  are restricted
      (i.e., aren't *), the command will be run when either field
      matches the current time.
      For example, ``30 4 1,15 * 5'' would cause a command to be run at
      4:30 am on the 1st and 15th of each month, plus  every  Friday.


Cristian



Reply to: