Re: [Debian] Cron & Shellscript - Fehler gefunden! -> Frage
Hallo Roman,
> > aon restart # restart connection
[...]
> Der Fehler liegt darin, daß cron scheinbar nicht die
> PATH-Variable ausliest, d.h. wenn man
man 5 crontab:
Several environment variables are set up automatically by
the cron(8) daemon. SHELL is set to /bin/sh, and LOGNAME
and HOME are set from the /etc/passwd line of the
crontab's owner. PATH is set to "/usr/bin:/bin".
> In /etc/crontab befinden
> sich ja die Standardeinträge
>
> 25 6 * * * root test -e /usr/sbin/anacron || run-parts --report
> /etc/cron.daily 47 6 * * 7 root test -e /usr/sbin/anacron || run-parts
> --report /etc/cron.weekly 52 6 1 * * root test -e /usr/sbin/anacron ||
> run-parts --report /etc/cron.monthly
>
> Die funktionieren scheinbar (?) auch NICHT, da cron nicht die
> PATH-Variable, die hier mit
>
> /usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/sbin/:/usr/sbin:/usr/games
>
> gesetzt ist, ausliest. Erst wenn man
>
> test --> /usr/bin/test
> run-parts --> /bin/run-parts
Also bei mir funktioniert das, und zwar deswegen, weil
- test ein shell-builtin ist
- das test-binary genauso wie run-parts im cron-PATH liegen.
Gruß, Frank
--
Frank Fuerst, Institut fuer Biochemie und Biologie der Uni Potsdam
Karl-Liebknecht-Str. 24-25, Haus 25, 14476 Golm
Tel.: +49-331-977-5244; Fax.: +49-331-977-5062
ffrank@rz.uni-potsdam.de
--
-----------------------------------------------------------
Um sich aus der Liste auszutragen schicken Sie bitte eine
E-Mail an debian-user-de-request@lehmanns.de die im Subject
"unsubscribe <deine_email_adresse>" enthaelt.
Bei Problemen bitte eine Mail an: Jan.Otto@Lehmanns.de
-----------------------------------------------------------
740 eingetragene Mitglieder in dieser Liste.
Reply to: