I'm using DNSExit on my Ubuntu server (Natty 11.04) and have installed the ipUpdate rpm file and did an apt-get install for chkconfig to enable the ipUpdate.
I'd like to get an email whenever the IP address changes, so that I can SSH into the box using PuTTY (because I can't unless I know the current IP address).
The current IP address is stored in
/tmp/dnsexit-ip.txt, and I'd like to, whenever that file changes, to mail the contents of that file and the contents of
/var/log/dnsexit.log (which contains a history of the IP changes) to my email address.
How can I accomplish this task? I'm thinking that a cronjob will be the solution, but I'm not sure how to do this.