1 Attachment(s)
FYI: Current FTA Gap Report
Just in case you are interested, the gaps in the latest slice for FTA channels is as follows (the negative numbers mean there is an overlap):
Code:
GAP (14400) in data (7998002, Date=12734, Time=43200, Duration=3600)
GAP (10500) in data (7998002, Date=12735, Time=24300, Duration=1200)
GAP (10500) in data (7998003, Date=12734, Time=56400, Duration=1500)
GAP (10800) in data (7998003, Date=12735, Time=54000, Duration=3600)
GAP (10800) in data (7998005, Date=12734, Time=56100, Duration=1500)
GAP (10800) in data (7998005, Date=12736, Time=56100, Duration=3300)
GAP (21600) in data (7998005, Date=12738, Time=43800, Duration=3000)
GAP (-18300) in data (7998001, Date=12734, Time=3300, Duration=18300)
GAP (-7200) in data (7998001, Date=12735, Time=3600, Duration=18000)
GAP (11100) in data (7998001, Date=12737, Time=45000, Duration=1800)
GAP (10800) in data (7998006, Date=12734, Time=2700, Duration=8100)
GAP (10800) in data (7998006, Date=12735, Time=0, Duration=10800)
GAP (10800) in data (7998006, Date=12736, Time=0, Duration=10800)
GAP (10800) in data (7998006, Date=12738, Time=0, Duration=10800)
1 Attachment(s)
Dynamic IP Address notification
Created the attached program for a friend of mine who has ADSL and wanted to be notified when his IP Address changed (eg the ADSL router was rebooted and got a different DHCP address).
Could not be bothered doing it in C, so thought I would do it in TCL (this makes it easier for people to modify). It's not the best code, but should be enough for most peoples needs... The code for sending the email came from dailymail.
Anyway... when run, the attached script will email you when your IP address changes... the current address will be stored in /var/log/my_ip_address. You can either run this via cron at say 4am, or change the "sleep" variable found at the top of the script to 24 (which will make the script loop and check every 24 hours) and place the script running in the background (using "./monitorIP &")
You will need to alter the "sender", "recipient", "mailserver" and "domain" variables found near the top of the script... If you already have dailymail configured then you can use the same values here. In short... if you are with Xtra and have an email address of bob@xtra.co.nz then you can set the sender and recipient to "bob@xtra.co.nz", and set the mailserver to "203.96.92.132" (which is the IP address of the mail.xtra.co.nz server) and set the domain to "xtra.co.nz".