From owner-freebsd-questions Mon May 7 10:39: 5 2001 Delivered-To: freebsd-questions@freebsd.org Received: from thehousleys.net (frenchknot.ne.mediaone.net [24.147.224.201]) by hub.freebsd.org (Postfix) with ESMTP id 9F9AA37B423 for ; Mon, 7 May 2001 10:39:00 -0700 (PDT) (envelope-from jim@thehousleys.net) Received: (from root@localhost) by thehousleys.net (8.11.3/8.11.2) id f47HcxZ77436; Mon, 7 May 2001 13:38:59 -0400 (EDT) (envelope-from jim@thehousleys.net) Received: from thehousleys.net (baby.int.thehousleys.net [192.168.0.24]) (authenticated) by thehousleys.net (8.11.3/8.11.3) with ESMTP id f47Hcwm77428; Mon, 7 May 2001 13:38:58 -0400 (EDT) (envelope-from jim@thehousleys.net) Message-ID: <3AF6DDB1.6A7137F7@thehousleys.net> Date: Mon, 07 May 2001 13:38:57 -0400 From: James Housley X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: Drew Tomlinson Cc: "FreeBSD Questions (E-mail)" Subject: Re: Works From Command Line But Not From Cron? References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS perl-10 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Drew Tomlinson wrote: > > I am new to using cron. I have a simple command that I would like have run > every so often to update my dynamic IP address. This is the command: > > lynx -source -auth=username:password > 'http://dynamic.zoneedit.com/auth/dynamic.html?host=www.mydomain.com' >> > /var/log/lynx_dns_update.log > > And the successful output from the log: > > IP="207.173.248.121"> > > This command runs fine from the command line but does not seem to work (no > update) as a cron job. From my cron log: > > May 7 10:05:00 blacksheep CRON[30684]: (root) CMD > (lynx -source -auth=username:password > 'http://dynamic.zoneedit.com/auth/dynamic.html?host=test.mykitchentable.net' > >> /var/log/lynx_dns_update.log) > > And nothing gets appended into my logfile. Here is my cron entry from > /var/cron/tabs/root: > > * * * * * lynx -source -auth=username:password > 'http://dynamic.zoneedit.com/auth/dynamic.html?host=test.mykitchentable.net' > >> /var/log/lynx_dns_update.log > First guess is that it is not finding lynx, cron doesn't have the same PATH as you normaly do. Try: * * * * * /usr/local/bin/lynx -sou....... Jim -- /"\ ASCII Ribbon Campaign . \ / - NO HTML/RTF in e-mail . X - NO Word docs in e-mail . / \ ----------------------------------------------------------------- jeh@FreeBSD.org http://www.FreeBSD.org The Power to Serve jim@TheHousleys.Net http://www.TheHousleys.net --------------------------------------------------------------------- "It's a damn poor mind that can only think of one way to spell a word." -- Andrew Jackson To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message