Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 07 May 2001 10:13:02 -0700
From:      Drew Tomlinson <drewt@writeme.com>
To:        "FreeBSD Questions (E-mail)" <freebsd-questions@FreeBSD.org>
Subject:   Works From Command Line But Not From Cron?
Message-ID:  <BA5D0CE1CBB2D411B6AA00A0CC3F02390AF9C1@ldcmsx01.lc.ca.gov>

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

<SUCCESS CODE="200" TEXT="Update succeeded." ZONE="mykitchentable.net"
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

So can anyone tell me why it works from the command line but not from cron?

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?BA5D0CE1CBB2D411B6AA00A0CC3F02390AF9C1>