summaryrefslogtreecommitdiffstats
path: root/sbin/ping/ping.8
diff options
context:
space:
mode:
authordd <dd@FreeBSD.org>2002-10-02 03:24:27 +0000
committerdd <dd@FreeBSD.org>2002-10-02 03:24:27 +0000
commite49b56bfca88ba96da91bc14f9dfc149741da965 (patch)
treee57064d8a849900780d05e95486ed114ebe853dc /sbin/ping/ping.8
parent4be0d09ad35a2492cce9a9a891c2c800ad5c9669 (diff)
downloadFreeBSD-src-e49b56bfca88ba96da91bc14f9dfc149741da965.zip
FreeBSD-src-e49b56bfca88ba96da91bc14f9dfc149741da965.tar.gz
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 <davidt@yadt.co.uk> Obtained from: NetBSD
Diffstat (limited to 'sbin/ping/ping.8')
-rw-r--r--sbin/ping/ping.86
1 files changed, 4 insertions, 2 deletions
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
OpenPOWER on IntegriCloud