testing for Internet connection
kray at sonsothunder.com
Sat Dec 18 20:48:05 CST 2004
On 12/18/04 1:46 PM, "Richard Gaskin" <ambassador at fourthworld.com> wrote:
> What is the recommended method of testing for an Internet connection?
Well, this may not be "recommended", but I have this code in my Scripter's
-- hide shell activity from user
set the hideConsoleWindows to true
-- ping a host that should always
-- visible to your computer
get shell("ping 220.127.116.11 -n 1 -w 200")
-- isolate the status info
put lineoffset("% loss",it) into x
set the itemDelimiter to "="
get word 1 of last item of line x of it
-- tell somebody!
if it <> 1 then
Don't know if this will help,
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com
More information about the use-livecode