Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (8)
As of 2018-06-20 07:39 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (116 votes). Check out past polls.