Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Jan 2009 12:56:25 -0800
From:      Chris Cowart <ccowart@rescomp.berkeley.edu>
To:        KES <kes-kes@yandex.ru>
Cc:        Frederique Rijsdijk <free@isafeelin.org>, questions@freebsd.org
Subject:   Re: How to do ping really quiet?
Message-ID:  <20090107205625.GE35674@hal.rescomp.berkeley.edu>
In-Reply-To: <1335068292.20090105190147@yandex.ru>
References:  <182410038.20090105182234@yandex.ru> <496236C8.6080407@isafeelin.org> <1335068292.20090105190147@yandex.ru>

next in thread | previous in thread | raw e-mail | index | archive | help

--FwyhczKCDPOVeYh6
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

KES wrote:
> Thx. This help, but seems ugly. Because of I can miss other maybe
> usefull errors ((
> ping -q ya.ru  2>/dev/null
>=20
> Any other suggestions?

ping -q ya.ru 2>&1 1>/dev/null | grep -v 'ping: sendto: No route to host' >=
&2

Send ping stderr to stdout, throw away ping stdout, use grep to suppress
the error you don't care about, and optionally, write any other error
messages to stderr (mostly useful if this is wrapped up in some kind of
function that may or may not have its stdout redirected).

--=20
Chris Cowart
Network Technical Lead
Network & Infrastructure Services, RSSP-IT
UC Berkeley

--FwyhczKCDPOVeYh6
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (FreeBSD)

iQIcBAEBAwAGBQJJZRb5AAoJEIGh6j3cHUNPHYkP/iy9P+4hXmrDnmsp1eGk00Zf
Ng1UvaP2jYA/x5afiJNhQXJy4e4lHad5GaiNK7HpYmwp1b30OjACW4vOZLXvji9J
BCh553yq2ifcJlIYbIIW81V06NNS3hO91PiQ91An++JHN38L8Ak1WZKq0r5ibWZh
1wzydkt09cf6FjC1GAqv4oYH3quvgDM5hu022oU+H9oACRGplgkG3EnhMmuNBkKu
sKVBp6k8zesCg9NSQMUDG+XprSbPkQCzQRZ5PiP2/vZ0NaCqvdmF07ehcBjvDT2S
GxnWOxVZtH8eHj4XnNw4m6K39rqRjMY2pl7vL/Diz3u/Q66cxGNIrdOBbrbFVKkM
tp4QZKdP/3Gohr7ZA1IfpIZn51hJFM/T/DXzRotJG2rghURtWEAayMaWNbPuGfEA
/x2kNHl/9ehx1vLcak2FgMLME5Is0hADvJ/cfDw7NozKVlMKaoqbg4c8kGdGSRJJ
83XEFK/3NeuKILv+qN/LTq2YqU4/wEKr1DhejgZxZMTODfC2XlDWVvX81OShduNL
TxvfxLjXAXbzldxXrwMqqoPaUyAyOXiPNlD2kf/0IcB4FR3Iy78ID8OEiCp1j/Am
U6wCpz3g/AZivVpYFLQA49LBpfttkM79+3VXUFTKufW44ceylACVF9o5VBedEyH9
e/42XGcQVxiAC/LczAty
=d+2E
-----END PGP SIGNATURE-----

--FwyhczKCDPOVeYh6--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090107205625.GE35674>