Re: Cron - crontab problem

From: Oliver Fromme <olli(at)secnetix.de>
Date: Mon, 11 Jun 2001 15:03:24 +0200 (CEST)

Marian Hettwer <MH(at)kernel32.de> wrote:
> das shellscript 'dns_update.sh' kann ich als user McQueen problemlos
> ausführen ./dns_update.sh
> die crontab von McQueen probiert dieses auch, scheitert aber dann mit
> der meldung
> lynx: not found
> nanü ?

Kein /usr/local/bin in $PATH.

Vor dem Ausführen von cronjobs werden ja Deine Login-
Skripte/Profiles nicht ausgeführt, d.h. auch $PATH wird
nicht gesetzt etc.

Einfach $PATH am Anfang des cronjobs geeignet setzen,
oder (wenn lynx das einzige ist, was Du brauchst) einfach
den absoluten Pfad /usr/local/bin/lynx in das Skript
reinschreiben.

Gruß
   Olli

-- 
Oliver Fromme, secnetix GmbH & Co KG, Oettingenstr. 2, 80538 München
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.
"All that we see or seem is just a dream within a dream" (E. A. Poe)
To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Mon 11 Jun 2001 - 15:03:27 CEST

search this site