• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

Crontab Frage

Tach,

ich habe da mal ein kleines Problem.

Diese Zeile steht als cron in der crontab

0 2 10-14 * 0-4 meinskript

Ich interpertiere das als, führe mir das skript um 2.00 Uhr aus, vom 10-14 Tag im Monat, und das von Montag bis Donnerstag.

Das Linux meint aber daraus eine Oder- Verknüpfung zu machen.
Der führt nämlich das Skript am 10-14 Tag des Monats aus ODER wenn der Wochentag ein Montag bis Donnerstag ist.

Kann das sein?

Grüße
 
Hi,

das ist so und muss auch so sein!

Auszug aus der manpage zur cron:
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.

Gruss

anylinux
 
Oben