From owner-freebsd-questions Mon May 7 11:11:36 2001 Delivered-To: freebsd-questions@freebsd.org Received: from wsp024893wss.OPS.3Com.COM (pc-90-152.corp.3com.com [139.87.90.152]) by hub.freebsd.org (Postfix) with ESMTP id 6EB6137B43C for ; Mon, 7 May 2001 11:11:22 -0700 (PDT) (envelope-from benski@pacbell.net) Received: (from bhyatt@localhost) by wsp024893wss.OPS.3Com.COM (8.11.2/8.11.2) id f47IDYF04832; Mon, 7 May 2001 11:13:34 -0700 X-Authentication-Warning: wsp024893wss.OPS.3Com.COM: bhyatt set sender to benski@pacbell.net using -f Subject: Re: Works From Command Line But Not From Cron? From: Benjamin Hyatt To: Drew Tomlinson Cc: FreeBSD Questions "(E-mail)" In-Reply-To: References: Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 07 May 2001 11:13:33 -0700 Message-Id: <989259213.1311.4.camel@wsp024893wss.ops.3com.com> Mime-Version: 1.0 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 07 May 2001 10:13:02 -0700, Drew Tomlinson wrote: > 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 > > So can anyone tell me why it works from the command line but not from cron? Like James said, lynx may not be in the path. What I would recommend you do is create a small shell script that sets the proper path(s) and has your lynx argument. Then just call from cron... * * * * * /whatever/pathtoscript/script 2>&1 -Ben > Thanks for your help! > > Drew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message