Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Jan 2009 03:57:53 +1100
From:      andrew clarke <mail@ozzmosis.com>
To:        KES <kes-kes@yandex.ru>
Cc:        questions@freebsd.org
Subject:   Re: How to do ping really quiet?
Message-ID:  <20090105165753.GA71550@ozzmosis.com>
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 2009-01-05 18:22:34 UTC+0200, KES (kes-kes@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



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