Checking for an internet connectio

Peter Haworth pete at lcsql.com
Sun Apr 29 13:49:19 EDT 2012


Hi Phil,
Double checking on the code below in your script.  The man page for ping in
OS X and Linux say that ping has an exit code of zero if no errors are
encountered.  Should the test on tResult be for zero or have you found that
empty works too?

Thanks,
Pete
lcSQL Software <http://www.lcsql.com>



On Sat, Apr 28, 2012 at 12:30 PM, Phil Davis <revdev at pdslabs.net> wrote:

> -- check for connection failure
>    if tResult <> empty
>    then return false -- failed
>    else -- connected, but how well?
>



More information about the use-livecode mailing list