Mag. Leonhard Landrock wrote: > Hallo Liste! > > Ich habe eine Frage zur Funktionsweise des Cron Daemons. > > Auf meinem Rechner finde ich folgende Verzeichnisse und Dateien: > > *) /etc/crontab > *) /etc/cron.d/debarchiver > *) /etc/cron.d/postgresql-common > *) /etc/cron.daily/apt > *) /etc/cron.daily/aptitude > *) /etc/cron.daily/bsdmainutils > *) /etc/cron.daily/cfengine > *) /etc/cron.daily/exim4-base > *) /etc/cron.daily/find > *) /etc/cron.daily/logrotate > *) /etc/cron.daily/man-db > *) /etc/cron.daily/modutils > *) /etc/cron.daily/mysql-server > *) /etc/cron.daily/mysql-server-41 > *) /etc/cron.daily/mythtv-backend > *) /etc/cron.daily/netkit-inetd > *) /etc/cron.daily/standard > *) /etc/cron.daily/sysklogd > *) /etc/cron.daily/tetex-bin > *) /etc/cron.hourly/ > *) /etc/cron.monthly/scrollkeeper > *) /etc/cron.monthly/standard > *) /etc/cron.weekly/cfengine > *) /etc/cron.weekly/cvs > *) /etc/cron.weekly/dhelp > *) /etc/cron.weekly/kdevelop3 > *) /etc/cron.weekly/lpr > *) /etc/cron.weekly/man-db > *) /etc/cron.weekly/sysklogd > > Der Befehl "crontab -e" erlaubt mir die Bearbeitung von ... > > Angezeigt bekomme ich (nach meiner letzten Änderung) folgendes: > > # > # Regular cron jobs for the debarchiver package > # > # Run the archiver every five minutes. > # */5 * * * * debarchiver test -x /usr/bin/debarchiver > && /usr/bin/debarchiver -so | logger -t debarchiver -p daemon.info > # > ### */5 * * * * debarchiver test -x /usr/bin/debarchiver && > PATH=$PATH:/usr/bin/debarchiver /usr/bin/debarchiver -ox --scanall | > logger -t debarchiver -p daemon.info > # > # */5 * * * * debarchiver test -x /usr/bin/debarchiver && > PATH=$PATH:/usr/bin/debarchiver > strace -o /tmp/debarchiver.log /usr/bin/debarchiver --dl 6 -ox --scanall | > logger -t debarchiver -p daemon.info > > Ein Blick in "/etc/cron.d/debarchiver" liefert mir folgende Inhalte: > > # > # Regular cron jobs for the debarchiver package > # > # Run the archiver every five minutes. > # */5 * * * * debarchiver test -x /usr/bin/debarchiver > && /usr/bin/debarchiver -so | logger -t debarchiver -p daemon.info > # > # */5 * * * * debarchiver test -x /usr/bin/debarchiver && > PATH=$PATH:/usr/bin/debarchiver /usr/bin/debarchiver -ox --scanall | > logger -t debarchiver -p daemon.info > # > */5 * * * * debarchiver test -x /usr/bin/debarchiver && > PATH=$PATH:/usr/bin/debarchiver > strace -o /tmp/debarchiver.log /usr/bin/debarchiver --dl 6 -ox --scanall | > logger -t debarchiver -p daemon.info > > > Zwei Fragen: > ------------------- > > 1.) Wo verbirgt sich nun mein (im angesprochenen Fall "root") crontab?
findest Du hier: /var/spool/cron/crontabs/ > Die man page sagt ja: "If the -u option is given, it specifies the name of > the > user whose crontab is to be tweaked. If this option is not given, crontab > examines "your" crontab, i.e., the crontab of the person executing the > command." > > 2.) Wer sorgt für die Ausführung der Einträge unter "/etc/cron.d/". imho macht das /usr/sbin/cron und was er tun soll steht in /etc/crontabs hth Reinhold -- Haeufig gestellte Fragen und Antworten (FAQ): http://www.de.debian.org/debian-user-german-FAQ/ Zum AUSTRAGEN schicken Sie eine Mail an [EMAIL PROTECTED] mit dem Subject "unsubscribe". Probleme? Mail an [EMAIL PROTECTED] (engl)