Below is my little script to mount the FTP server on the local machine, change into the correct directory and finally pull the current External IP address
#!/bin/bash curlftpfs -o allow_other ftp://user:pass@ftp.host.com mountpoint cd mountpoint/web_directory wget http://automation.whatismyip.com/n09230945.asp -O ddns.html