Skip site navigation (1)Skip section navigation (2)
Date:      07 May 2001 11:13:33 -0700
From:      Benjamin Hyatt <benski@pacbell.net>
To:        Drew Tomlinson <drewt@writeme.com>
Cc:        FreeBSD Questions "(E-mail)" <freebsd-questions@FreeBSD.org>
Subject:   Re: Works From Command Line But Not From Cron?
Message-ID:  <989259213.1311.4.camel@wsp024893wss.ops.3com.com>
In-Reply-To: <BA5D0CE1CBB2D411B6AA00A0CC3F02390AF9C1@ldcmsx01.lc.ca.gov>
References:  <BA5D0CE1CBB2D411B6AA00A0CC3F02390AF9C1@ldcmsx01.lc.ca.gov>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?989259213.1311.4.camel>