Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Jan 2009 19:01:47 +0200
From:      KES <kes-kes@yandex.ru>
To:        Frederique Rijsdijk <free@isafeelin.org>
Cc:        questions@freebsd.org
Subject:   Re[2]: How to do ping really quiet?
Message-ID:  <1335068292.20090105190147@yandex.ru>
In-Reply-To: <496236C8.6080407@isafeelin.org>
References:  <182410038.20090105182234@yandex.ru> <496236C8.6080407@isafeelin.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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@yandex.ru




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