Re: Checking connection

From: HawkEye (sunbed_at_rocketmail.com)
Date: 10/18/04


Date: Mon, 18 Oct 2004 17:57:35 +0100

Tree*Rat wrote:
> I need to do a little script that checks if a internet connection is live
> or not. if its is it displays a message/or redirects to a certain page (ie
> www.ntlworld.com) and if not then to localhost.
>
> any ideas?

One easy way is to create a text file at the remote site. Then try and open
it. If you can the connection is up, if you can't its down. Redirect as
required.

HTH

-- 
Regards
Neil
Registered Linux User 324599
Windows: No remote holes in almost 3 hours


Relevant Pages

  • Checking connection
    ... I need to do a little script that checks if a internet connection is live ... if its is it displays a message/or redirects to a certain page (ie ... www.ntlworld.com) and if not then to localhost. ...
    (alt.php)
  • Re: Send E-Mail
    ... have to assume it doesn't work, and use blat, thanks again. ... never needed CDO so I never looked into it. ... I ran the script - and... ... know for sure until you have physically severed your internet connection. ...
    (microsoft.public.scripting.vbscript)
  • Re: Troubleshooting connection loss (novice question)
    ... My DSL connection usually runs well, but about once every seven to ten days I lose my Internet connection. ... the modem. ... Your script dump_net.txt Ver 3.4 appears to have some problems with respect to Fedora. ... Ethtool is installed on my system. ...
    (comp.os.linux.networking)
  • Re: Can we set up a voice for disconnetion?
    ... espeak "Internet connection may be down" ... and start the script - you should find it ... Best way is with a cron job. ... When one person suffers from a delusion it is insanity. ...
    (Ubuntu)
  • Re: Incredifind Problem
    ... In removing the spyware, you may have broken your internet connection. ... If you are using Windows 98 or ME, use this script ...
    (microsoft.public.windows.inetexplorer.ie6.browser)