Re: How detect internet connection?
- Posted by jimcbrown (admin) Aug 13, 2013
- 1639 views
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.