I got simple bash script which is running through crontab as user 'root'
CurreIP=$(wget http://freedns.afraid.org/xxxxxx-something to catche my current ip adderess
if [ "$CurreIP" = "$CacheIP" ]
echo Both IP are equal
echo "Update not required..."
something to update my current ip adderess
#Here is the problem
echo "$(date) Updating log with IP $CurreIP " >> dnsactual.log
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