D
Dave
Hello,
I'm wanting to develope a script for ip change notification. Since my
box doesn't change cleanly, i'd like to run this script from cron say every
30 minutes. First thing it does is checks the IP, if it's the same as 30
minutes ago it pings one of about ten sites from a list in random order. If
that works, everything is well exit. If not meaning the ip test reports the
same as 30 minutes ago but pinging that list returns nothing then run three
commands, obtain the new ip, save it, and send an email to a designated
address.
I'm not sure if i should do this in shell or perl, as of right now i
have the ip address printing, but i believe i'd have to do something with
saving state between script loads, this i've never done. If anyone has any
suggestions i'd appreciate them.
Thanks.
Dave.
I'm wanting to develope a script for ip change notification. Since my
box doesn't change cleanly, i'd like to run this script from cron say every
30 minutes. First thing it does is checks the IP, if it's the same as 30
minutes ago it pings one of about ten sites from a list in random order. If
that works, everything is well exit. If not meaning the ip test reports the
same as 30 minutes ago but pinging that list returns nothing then run three
commands, obtain the new ip, save it, and send an email to a designated
address.
I'm not sure if i should do this in shell or perl, as of right now i
have the ip address printing, but i believe i'd have to do something with
saving state between script loads, this i've never done. If anyone has any
suggestions i'd appreciate them.
Thanks.
Dave.