Hello,
I got simple bash script which is running through crontab as user 'root'
#!/bin/bash
#echo $CacheIP
CurreIP=$(wget
http://freedns.afraid.org/xxxxxx-something to catche my current ip adderess
if [ "$CurreIP" = "$CacheIP" ]
then
echo Both IP are equal
echo "Update not required..."
else
wget
http://freedns.afraid.org/dynamic/update.php something to update my current ip adderess
#Here is the problem
echo "$(date) Updating log with IP $CurreIP " >> dnsactual.log
fi
rm -f /etc/freedns/dnsactual.conf
echo $CurreIP > /etc/freedns/dnsactual.conf
when I am running this script manually it is work perfect(meening I got dnsactual.log start filling), but doing it through crontab it is do the job concerning update my ip address like it is suppouse to do, but I do not have dnsactual.log file updated