how to write script to update the ip address
Hi all,
I need a help to write a script write on my Mac OS 10.10.1
I have a dynamic DNS that need to update through a URL for the new public IP address.
The script to get the current external IP address
curl -s checkip.dyndns.org|sed -e 's/.*Current IP Address: //' -e 's/<.*$//'
This is the URL need to update everything 5 minutes with the output of the current public Ip address or it can detect the change if change then do update if no then do nothing,
https://domain.com/update?host=ab&domain=abc.com&password=xx&ip=1.1.1.1
Thanks for the help
MacBook Air, Mac OS X (10.7.2), 256GB SSD, 1.8GHZ i7