Cron wil nie meer

Pagina: 1
Acties:

  • nrg
  • Registratie: April 2001
  • Laatst online: 08:29
zoals de topictitel al zegt; m'n cron wil opeens niet meer...

wat is er fout ??

Inhoud van mijn /etc/crontab:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
PATH=/usr/bin:/usr/sbin:/sbin:/bin:/usr/lib/news/bin
MAILTO=root

#-* * * * *    root  test -x /usr/sbin/atrun && /usr/sbin/atrun
30 * * * *     root  test -x uptime|mail ik@sms.genie.nl
45 * * * *     root  test -x /usr/bin/webalizer -q
0 21 * * *     root  test -x /usr/sbin/faxqclean && /usr/sbin/faxqclean
5 22 * * *     root  test -x /usr/sbin/texpire && /usr/sbin/texpire
# 25 23 * * *  root test -e /usr/sbin/faxcron && sh /usr/sbin/faxcron | mail FaxMaster
#
# check scripts in cron.hourly, cron.daily, cron.weekly, and cron.monthly
#
-*/15 * * * *   root  test -x /usr/lib/cron/run-crons && /usr/lib/cron/run-crons
59 *  * * *     root  rm -f /var/spool/cron/lastrun/cron.hourly
14 0  * * *     root  rm -f /var/spool/cron/lastrun/cron.daily
29 0  * * 6     root  rm -f /var/spool/cron/lastrun/cron.weekly
44 0  1 * *     root  rm -f /var/spool/cron/lastrun/cron.monthly

(ik heb zelf die SMS-genie toegevoegd)

En ik krijg steeds n meeltje:
Van: "Cron Daemon" <root@domein.nl>
Aan: <root@miep.domein.nl>
Onderwerp: Cron <root@miep> root test -x /usr/lib/cron/run-crons && /usr/lib/cron/run-crons
Datum: maandag 25 juni 2001 14:15

/bin/sh: root: command not found
iemand ???

Verwijderd

Die /bin/sh: root: command not found zegt het al: Je moet na de time (die sterretjes) direct het commando opgeven. Nu heb je eerst root staan, gevold door het commando. Op het moment dat je (als r00t) crontab -e doet, edit je de crontab van root en is het dus ook helemaal niet nodig om root te specificeren in de crontab...

  • bkor
  • Registratie: November 2000
  • Niet online
Op maandag 25 juni 2001 14:25 schreef cest_moi-le_roi het volgende:
zoals de topictitel al zegt; m'n cron wil opeens niet meer...

wat is er fout ??

Inhoud van mijn /etc/crontab:
code:
1
-*/15 * * * *   root  test -x /usr/lib/cron/run-crons && /usr/lib/cron/run-crons

En ik krijg steeds n meeltje:
code:
1
Onderwerp: Cron <root@miep> root test -x /usr/lib/cron/run-crons

iemand ???
Haal het "-" aan het begin van die regel weg en stuur daarna een HUP naar crond.