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

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 rifling through the Monastery: (4)
As of 2015-11-29 06:59 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (748 votes), past polls