From e49b56bfca88ba96da91bc14f9dfc149741da965 Mon Sep 17 00:00:00 2001
From: dd
Date: Wed, 2 Oct 2002 03:24:27 +0000
Subject: Add an -o option to exit after receiving one reply. This can be used
to test whether a link is live.
PR: 38573
Submitted by: David Taylor
Obtained from: NetBSD
---
sbin/ping/ping.8 | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
(limited to 'sbin/ping/ping.8')
diff --git a/sbin/ping/ping.8 b/sbin/ping/ping.8
index 9f05cff..b71d138 100644
--- a/sbin/ping/ping.8
+++ b/sbin/ping/ping.8
@@ -32,7 +32,7 @@
.\" @(#)ping.8 8.2 (Berkeley) 12/11/93
.\" $FreeBSD$
.\"
-.Dd September 25, 2001
+.Dd October 2, 2002
.Dt PING 8
.Os
.Sh NAME
@@ -42,7 +42,7 @@
packets to network hosts
.Sh SYNOPSIS
.Nm
-.Op Fl AQRadfnqrv
+.Op Fl AQRadfnoqrv
.Op Fl c Ar count
.Op Fl i Ar wait
.Op Fl l Ar preload
@@ -160,6 +160,8 @@ This flag only applies if the ping destination is a multicast address.
.It Fl n
Numeric output only.
No attempt will be made to lookup symbolic names for host addresses.
+.It Fl o
+Exit successfully after receiving one reply packet.
.It Fl p Ar pattern
You may specify up to 16
.Dq pad
--
cgit v1.1