IPup is a script that will update the webpage containing my internal BYU IP address so that I can do remote access from friend's computers.
Although it needs work before it works like I want it to, here is the current code:
#!/bin/bash
cd /root/wsupdate
cat templateip1.html > ip.html
ifconfig | grep inet | grep 10. >> ip.html
cat templateip2.html >> ip.html
lcd /root/wsupdate
!/root/wsupdate/createip.sh
open ftp.ftpsite.com -u username,password
put ip.html
close
!echo done
exit
The scheduling on this script does not appear to update it correctly, but running it manually
does
This script is set to run at 11:45PM unless I execute it manually with:
lftp -f /root/wsupdate/ipup.lftp
The crontab entry for this is:
45 23 * * * lftp -f /root/wsupdate/ipup.lftp