I have strange situation with OpenDNS update script.
It is looks like this:
When I run this script manually it is working fine, in system log I got something like:
trap cleanup 1 2 3 6
/opt/bin/curl -o $TEMP -u user:password https://updates.opendns.com/nic/update
if [ `cat $TEMP | grep -c good` = 1 ]
logger OpenDNS updated successfully
while [ $ERROR -gt 0 ]; do
logger OpenDNS update failed
But when I put this script in cron "cron.hourly" directory, after execution in system log i got:
Sep 30 16:11:46 admin: OpenDNS updated successfully
What is wrong?
Sep 30 16:01:33 admin: OpenDNS update failed
Please give some help