PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : fehler in der crontab



H-net
07.07.05, 00:29
hi...
hab irgendeinen komischen fehler in der crontab...
er schickt mir alle stunde um 17 nach eine email:
betreff: Cron <root@jena1> root run-parts --report /etc/cron.hourly
inhalt: /bin/bash: root: command not found

das ist meine crontab:

# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file.
# This file also has a username field, that none of the other crontabs do.

SHELL=/bin/bash
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

# m h dom mon dow user command
17 * * * * root run-parts --report /etc/cron.hourly
25 6 * * * root test -x /usr/sbin/anacron || run-parts --report /etc/cron.daily
47 6 * * 7 root test -x /usr/sbin/anacron || run-parts --report /etc/cron.weekly
52 6 1 * * root test -x /usr/sbin/anacron || run-parts --report /etc/cron.monthly

wo is da irgendwo ein "root" zuviel?

gruß

rkauskh
07.07.05, 17:05
Hi

In der ersten Zeile ist zwar das root mE nicht zuviel, vermutlich fehlt ihm aber der Pfad zu run-parts. Entweder die PATH-Variable anpassen oder einfach erstmal testweise den kompletten Pfad mit eintragen. Also /pfad/run-parts --reports usw.