diff options
author | Dima Dorfman <dd@FreeBSD.org> | 2002-10-02 03:24:27 +0000 |
---|---|---|
committer | Dima Dorfman <dd@FreeBSD.org> | 2002-10-02 03:24:27 +0000 |
commit | 8025c44b00f74e8dd65b526b5a7fa7cbf805b2a5 (patch) | |
tree | e57064d8a849900780d05e95486ed114ebe853dc /sbin/ping/ping.8 | |
parent | 92dbb82a47dc27aff8b0e9470f2272e799797b9f (diff) | |
download | src-8025c44b00f74e8dd65b526b5a7fa7cbf805b2a5.tar.gz src-8025c44b00f74e8dd65b526b5a7fa7cbf805b2a5.zip |
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
Notes
Notes:
svn path=/head/; revision=104339
Diffstat (limited to 'sbin/ping/ping.8')
-rw-r--r-- | sbin/ping/ping.8 | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sbin/ping/ping.8 b/sbin/ping/ping.8 index 9f05cffa8312..b71d13884241 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 |