network script syntax problem

Jude DaShiell jdashiel at panix.com
Fri Nov 6 14:33:52 UTC 2015


ping returns an exit code of 0 when it fails to connect.  I tried that 
already.

I used:
ping -c 5 8.8.8.8
echo $?
and got back zero.
On Fri, 6 Nov 2015, Ari Moisio wrote:

> Date: Fri, 6 Nov 2015 07:59:51
> From: Ari Moisio <arimo at iki.fi>
> Reply-To: Linux for blind general discussion <blinux-list at redhat.com>
> To: Linux for blind general discussion <blinux-list at redhat.com>
> Subject: Re: network script syntax problem
> 
> Hi
>
> The $(...) does not capture stderr output.
>
> Could you use ping exit code directly; it will fail  in it got no repllies.
>
>
>

-- 




More information about the Blinux-list mailing list