HI! In Suse 9.2 stand in /etc/crontab: -*/15 * * * * root test -x /usr/lib/cron/run-crons && /usr/lib/cron/run-crons >/dev/null 2>&1 59 * * * * root rm -f /var/spool/cron/lastrun/cron.hourly 14 3 * * * root rm -f /var/spool/cron/lastrun/cron.daily 29 3 * * 6 root rm -f /var/spool/cron/lastrun/cron.weekly 44 3 1 * * root rm -f /var/spool/cron/lastrun/cron.monthly In Suse 10.1 steht nur: -*/15 * * * * root test -x /usr/lib/cron/run-crons && /usr/lib/cron/run-crons >/dev/null 2>&1 Ist das korrekt? Wo stelle ich dann ein, zu welcher Uhrzeit die daily Jobs laufen? Danke! Thomas
Thomas Börkel wrote:
HI!
In Suse 9.2 stand in /etc/crontab:
-*/15 * * * * root test -x /usr/lib/cron/run-crons && /usr/lib/cron/run-crons >/dev/null 2>&1 59 * * * * root rm -f /var/spool/cron/lastrun/cron.hourly 14 3 * * * root rm -f /var/spool/cron/lastrun/cron.daily 29 3 * * 6 root rm -f /var/spool/cron/lastrun/cron.weekly 44 3 1 * * root rm -f /var/spool/cron/lastrun/cron.monthly
In Suse 10.1 steht nur:
-*/15 * * * * root test -x /usr/lib/cron/run-crons && /usr/lib/cron/run-crons >/dev/null 2>&1
Ist das korrekt? Wo stelle ich dann ein, zu welcher Uhrzeit die daily Jobs laufen?
Indem Du die alte crontab einfach weiterverwendest. Ich hab das schon paarmal moniert, sie haben auch versprochen, das wieder zurückzuändern, aber bisher ist leider noch nichts passiert. Ansonsten hat /usr/lib/cron/run-crons eine makeup-Funktionalität, d.h. es wird geprüft, wann der letzte { hourly | daily | weekly | monthly } job gelaufen ist, und wenn das entweder noch gar nicht war oder schon zu lange her ist, wird der Job ausgeführt. So lange man im Betrieb der Rechner eine gewisse zeitliche Konstanz hat, schaukelt sich das dadurch auf irgendwelchen 'Gewohnheitswerten' ein. Wenn man was Bestimmtes will, führt kein Weg an der alten crontab vorbei. Gruss, Christian -- Name: Christian Andretzky | Address: TU Chemnitz | Phone: ++49 +371 531 32130 | Fak. Maschinenbau/Verfahrenstechnik | FAX: ++49 +371 531 2081 | Reichenhainer Str. 70 | mail: Andretzky@MB.TU-Chemnitz.DE | D-09107 Chemnitz | PGP: public key avaliable via public key server | In a world without walls and fences, there is no need for windows and gates | "The Box said 'Windows 95 or better'. - So I installed Linux." |
participants (2)
-
Christian Andretzky
-
Thomas Börkel