Re: How detect internet connection?

new topic     » goto parent     » topic index » view thread      » older message » newer message
sergelli said...

Oops ... I spoke too soon in victory ...

The answer is always zero, even if I use a non-existent address or disconnect the internet

Have you tried bumping the timeout? To e.g. -w 1000 ?

If it's just the exit code that's wrong, you can use pipeio to parse the output of the ping command itself.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu