would this still work, even thought i have no control over the actual IP address 
assignment?

The server is in one locatation, I use a company for my DNS.

thanks for idea though.

--
web: www.wormhole5.org
current: calgary, ab

----- Original Message -----
From: Neil Jolly <[EMAIL PROTECTED]>
Date: Monday, July 7, 2003 10:49 am
Subject: Re: (clug-talk) (OT) Perl Programming

> On Mon, 2003-07-07 at 10:22, [EMAIL PROTECTED] wrote:
> > Anyone know of a way to have a perl script, or system script 
> occasionally 
> > check/ping a url to see if it is working?
> > 
> > (the rest of the script will have a email sent if the url 
> doesn't work).
> > 
> 
> Here's an ipcop script that checks the connection and resets it if 
> it'sdown. You could easily alter this to achieve your desired end:
> 
> 
> #!/bin/sh
> 
> 
> #Check the connection on an ipcop firewall and reset if it's down
> ping -c1 `netstat -rn | grep ^0.0.0.0 | awk '{print $2}'`
> 
> if [ "$?" != "0" ] ; then
>    /etc/rc.d/netaddress.down
>    /etc/rc.d/netaddress.up
> fi
> 
> -- 
> Neil Jolly
> 
> (with Yoda-like voice)
> "Confrontation leads to anger...  Anger leads to fear...  Fear leads
> to using Windows NT in mission-critical combat systems...  And 
> this is
> how the ancients fell...
> 
> 

Reply via email to