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

Re: cron.daily und cron.weekly werden gleichzeitig ausgeführt



Am 21. Oktober 2012 14:42 schrieb Martin Steigerwald <Martin@lichtvoll.de>:

> Entweder zeitlich weiter auseinander legen oder ein Skript mit:
>
> run-parts --report /etc/cron.daily
> run-parts --report /etc/cron.weekly
>
> und das statt den obigen Einträgen aufrufen.

Also z.B. so was hier:

25 0    * * 1-6   root    test -x /usr/sbin/anacron || ( cd / &&
run-parts --report /etc/cron.daily )
47 0    * * 7   root    test -x /usr/sbin/anacron || ( cd / &&
run-parts --report /etc/cron.daily; run-parts --report
/etc/cron.weekly )

oder gleich nur noch eine (lange) Zeile in /etc/crontab für daily und weekly:

25 0    * * *   root    test -x /usr/sbin/anacron || ( cd / &&
run-parts --report /etc/cron.daily; cd / && LANG=C date +%A | grep -q
"Sunday" && run-parts --report /etc/cron.weekly )

Viel Spaß beim Ausprobieren und sonnige Grüße!
Matthias Böttcher


Reply to: