How to do ping really quiet?

KES kes-kes at yandex.ru
Mon Jan 5 09:01:54 PST 2009


Hello, Frederique.

FR> KES wrote:
>> Hello, Questions.
>> 
>> When I use
>> ping -q ya.ru
>> I get
>> ping: sendto: No route to host
>> 
>> How to make ping really quiet?
>> 


FR> Try:

FR> sh -c 'ping -q ya.ru > /dev/null 2>&1'

man ping
     -q      Quiet output.  Nothing is displayed except the summary lines at
             startup time and when finished.

That is mistake in Doc or in ping.

Thx. This help, but seems ugly. Because of I can miss other maybe
usefull errors ((
ping -q ya.ru  2>/dev/null

Any other suggestions?


-- 
С уважением,
 KES                          mailto:kes-kes at yandex.ru



More information about the freebsd-questions mailing list