Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Script to Notify of Public IP Change

by space_monk (Chaplain)
on Nov 29, 2012 at 16:09 UTC ( [id://1006284]=note: print w/replies, xml ) Need Help??


in reply to Script to Notify of Public IP Change

Well, it looks as thoough there is no provision for the wget to fail; I suspect that when it does fail it doesn't return a valid IP address! :-)

The simple answer is that you could have it simply not perform any action if the ip returned from the wget is blank, or even does not match a regex.

A Monk aims to give answers to those who have none, and to learn from those who know more.
  • Comment on Re: Script to Notify of Public IP Change

Replies are listed 'Best First'.
Re^2: Script to Notify of Public IP Change
by Arkevius (Initiate) on Nov 29, 2012 at 16:19 UTC
    I figured I would have to do as much. I'm actually surprised I didn't add that in there when I was writing it. I guess I also wanted to have others look at the whole thing to see if it was okay or there was a simpler way to do what I am doing.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1006284]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (8)
As of 2024-04-18 13:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found