Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re: Script to Notify of Public IP Change

by space_monk (Chaplain)
on Nov 29, 2012 at 16:09 UTC ( #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?

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (5)
As of 2016-10-23 11:03 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (301 votes). Check out past polls.