Date: Mon, 27 May 2002 00:30:03 -0700 (PDT) From: David Taylor <davidt@yadt.co.uk> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/38573: ping -o option (exit after one reply) Message-ID: <200205270730.g4R7U3u46940@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/38573; it has been noted by GNATS. From: David Taylor <davidt@yadt.co.uk> To: Dima Dorfman <dima@trit.org> Cc: FreeBSD-gnats-submit@FreeBSD.org Subject: Re: bin/38573: ping -o option (exit after one reply) Date: Mon, 27 May 2002 08:19:57 +0100 On Sun, 26 May 2002, Dima Dorfman wrote: > David Taylor <davidt@yadt.co.uk> wrote: > > ping -o will exit after receiving a single reply packet, which is useful > > for trying to see if a host/link is alive at all (which is what the script > > was attempting to to do :). > > Isn't this the same as `ping -c 1`? No, ping -c 1 will exit after *sending* one packet, whether it is received or not. ping -o -c 10 will send (up to) 10 packets, exiting sucessfully after receiving the first reply, or exit(2)'ing if it fails to receive a reply from any packet. -- David Taylor davidt@yadt.co.uk "The future just ain't what it used to be" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205270730.g4R7U3u46940>