How to do ping really quiet?

Polytropon freebsd at edvax.de
Mon Jan 5 08:50:09 PST 2009


On Mon, 5 Jan 2009 18:22:34 +0200, KES <kes-kes at yandex.ru> wrote:
> Hello, Questions.
> 
> When I use
> ping -q ya.ru
> I get
> ping: sendto: No route to host
> 
> How to make ping really quiet?

It depends on your shell. For default scripting shell (Bourne Shell)
you can

	ping -q ya.ru > /dev/null 2>&1

which "suppresses" standard output and error messages.

Within the standard dialog shell (C Shell), I think &> has the same
purpose (refer to "man csh" to be sure).



-- 
Polytropon
>From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...


More information about the freebsd-questions mailing list