any way to detect condition "connected to ISP but not internet"?

Andre Garzia andre at andregarzia.com
Wed Feb 11 16:43:02 EST 2009


Josh,

be aware that ping outputs differently for each OS.... Mac OS X is
different than Windows Ping and so on... you might need some clever
string handling there.

andre

On Wed, Feb 11, 2009 at 5:46 PM, Josh Mellicker <josh at dvcreators.net> wrote:
>
> On Jan 23, 2009, at 5:07 PM, Alex Tweedly wrote:
>>
>> To feel safe, I'd want to do the network check in a separate process, and
>> have a fail-safe mechanism within the real app (i.e. it detects failure
>> rather than waiting for it). So I'd use a backgrounded shell command which
>> creates a temp file, and have the real app check for that file being
>> created/updated. Could be a ping shell command, or a small standalone which
>> loads a url, or anything similar - as long as it's a separate process.
>>
> -- Alex.
>
>
>
> We are finally testing this.
>
> Could I ask a favor?
>
> Would someone who is behind a proxy server or corporate firewall test this
> code:
>
> on mouseUp
>   put "ping -c 1 google.com" into tCmd
>   open process tCmd FOR update
>   wait 1 second with messages
>   read from process tCmd until empty
>   put it
>   close process tCmd
> end mouseUp
>
> ?
>
>
> The question is:
>
> Will this code return a valid IP (in "it") even when normal Revolution ftp
> commands will not work?
>
> I am hoping the answer is "NO".
>
> If this works, it may mean, for the first time I'm aware of, we all have a
> way for checking if connected that will NEVER hang Revolution! Yipeee!
>
>
> Thanks!
>
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



-- 
http://www.andregarzia.com All We Do Is Code.



More information about the use-livecode mailing list