From owner-freebsd-bugs Wed Nov 28 8:10:14 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 596A837B41B for ; Wed, 28 Nov 2001 08:10:02 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id fASGA2h63305; Wed, 28 Nov 2001 08:10:02 -0800 (PST) (envelope-from gnats) Date: Wed, 28 Nov 2001 08:10:02 -0800 (PST) Message-Id: <200111281610.fASGA2h63305@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: setantae Subject: Re: bin/32354: ping -c 0 Reply-To: setantae Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR bin/32354; it has been noted by GNATS. From: setantae To: root@topcat.zoonami.com Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: bin/32354: ping -c 0 Date: Wed, 28 Nov 2001 16:02:34 +0000 On Wed, Nov 28, 2001 at 03:47:23PM +0000, djones@zoonami.com wrote: > At the command line: > > # ping -l 5 -c 0 gateway > > yields the error: > > ping: invalid count of packets to transmit: `0' > > whereas in this case I think -c 0 specifies something reasonable: > Send 5 packets as quickly as possible, then no more, then exit. It doesn't though, does it ? -c count Stop after sending (and receiving) count ECHO_RESPONSE packets. I think you'd be after : rhadamanth# ping -l 5 -c 5 archaia PING archaia.private.submonkey.net. (192.168.10.2): 56 data bytes 64 bytes from 192.168.10.2: icmp_seq=0 ttl=255 time=1.387 ms 64 bytes from 192.168.10.2: icmp_seq=1 ttl=255 time=1.566 ms 64 bytes from 192.168.10.2: icmp_seq=2 ttl=255 time=1.882 ms 64 bytes from 192.168.10.2: icmp_seq=3 ttl=255 time=2.110 ms 64 bytes from 192.168.10.2: icmp_seq=4 ttl=255 time=2.406 ms --- archaia.private.submonkey.net. ping statistics --- 6 packets transmitted, 5 packets received, 16% packet loss round-trip min/avg/max/stddev = 1.387/1.870/2.406/0.366 ms rhadamanth# Ceri To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message