KES wrote:
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?
ping -q ya.ru 21 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
Hello, Questions.
When I use
ping -q ya.ru
I get
ping: sendto: No route to host
How to make ping really quiet?
KES mailto:kes-...@yandex.ru
___
freebsd-questions@freebsd.org mailing list
On Mon, 5 Jan 2009 18:22:34 +0200, KES kes-...@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
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?
Try:
sh -c 'ping -q ya.ru /dev/null 21'
-- FR
___
freebsd-questions@freebsd.org mailing list
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 21'
man ping
-q Quiet output. Nothing is displayed except the summary lines at