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

Re: Bug in cron?



Marc Schiffbauer <marc.schiffbauer@links2linux.de> wrote:
> ich habe ein kleines Problem mit einer System crontab
> /etc/cron.d/backup

> Da steht drin:

> # Mo: level 100
> 01 04 1    1,3,5,7,9,11 1       root    /usr/sbin/incr_backup -a -H -Q100
> 01 04 2-31 2,4,6,8,10   1       root    /usr/sbin/incr_backup -a -H -Q100
[...]

> Also jeden zweiten Monat am ersten eines Monats je nach Wochentag die 
> erste Zeile, die übrige Zeit dann imer jeweils die Zweite Zeile des
> Wochentags...

> Durch die Wochentagsbegrenzung am Ende (1-7) sollte doch eigendlich
> jeden Tag nur *einer* dieser Einträge ausgeführt werden...
[...]

Nein.
crontab(5)
| 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 (ie, 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.
             cu andreas



Reply to: