How to do ping really quiet?

andrew clarke mail at ozzmosis.com
Mon Jan 5 09:24:32 PST 2009


On Mon 2009-01-05 18:22:34 UTC+0200, KES (kes-kes at yandex.ru) wrote:

> When I use
> ping -q ya.ru
> I get
> ping: sendto: No route to host
> 
> How to make ping really quiet?

You can redirect all output to /dev/null:

For /bin/sh:

ping -c 1 host > /dev/null 2>&1

For /bin/csh:

ping -c 1 host >& /dev/null


More information about the freebsd-questions mailing list