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

cron.d und crontab



Schönen guten Abend Vladislav,

heute (am 07.11.2007 um 02:52 Uhr) hast du eingetippt:

> Hallo,

> wie schafe ich das die dateien in /etc/cron.d ausgeführt werden? Muss
> da etwas ins crontab rein?

> Ich habe SID.

> Meine Crontab ist standart

> SHELL=/bin/sh
> PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

> # m h dom mon dow user  command

> *  *    * * *   root    cd / && run-parts --report /etc/cron.minutly
> 29 *    * * *   root    cd / && run-parts --report /etc/cron.hourly
> 39 4    * * *   root    test -x /usr/sbin/anacron || ( cd / &&
> run-parts --report /etc/cron.daily )
> 47 6    * * 7   root    test -x /usr/sbin/anacron || ( cd / &&
> run-parts --report /etc/cron.weekly )
> 52 6    1 * *   root    test -x /usr/sbin/anacron || ( cd / &&
> run-parts --report /etc/cron.monthly )

> und in cron.d ist sowas:

> # /etc/cron.d/radio
> * *  * * *   root    /etc/cron.hourly/restartMaildrophost

> #mo
> * *   * * *   root    test -x /usr/sbin/anacron || ( cd / && run-parts
> --report /etc/cron.my/so/ABEND2 )

Schilder doch einmal genau was du machen möchtest.

In cron.daily, weekly, monthly kommen einfach ausführbare Skripte, die
du eben täglich, wöchentlich oder monatlich ausführen lassen möchtest.
Dies sind einfache Skripte, ohne "Crontab-Syntax".
In cron.d liegen Skripte, die im "Crontab-Syntax" vorliegen müssen.
usw.

Das ist alles gar nicht so schwers
Schau dich mal in /usr/share/doc/cron etwas um.



> Viele Grüße
> Vlad

-- 
Bye,
Christoph

Ein Spruch von Albert Einstein:
Es ist leichter, einen Atomkern zu spalten als ein Vorurteil.




Reply to: