Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Jan 2009 17:50:07 +0100
From:      Polytropon <freebsd@edvax.de>
To:        KES <kes-kes@yandex.ru>
Cc:        questions@freebsd.org
Subject:   Re: How to do ping really quiet?
Message-ID:  <20090105175007.e829b692.freebsd@edvax.de>
In-Reply-To: <182410038.20090105182234@yandex.ru>
References:  <182410038.20090105182234@yandex.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 5 Jan 2009 18:22:34 +0200, KES <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 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, ...



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