openbsd-ports/net/fping/patches/patch-fping_8
2001-12-06 06:05:43 +00:00

70 lines
2.2 KiB
Plaintext

$OpenBSD: patch-fping_8,v 1.1 2001/12/06 06:05:43 form Exp $
--- fping.8.orig Thu Jan 9 00:48:49 1997
+++ fping.8 Thu Dec 6 11:42:11 2001
@@ -1,4 +1,4 @@
-.TH fping l
+.TH fping 8
.SH NAME
fping \- send ICMP ECHO_REQUEST packets to network hosts
.SH SYNOPSIS
@@ -79,7 +79,7 @@ example:
somehost : 91.7 37.0 29.2 - 36.8
-shows the response time in milliseconds for each of the five requests,
+shows the response time in microseconds for each of the five requests,
with the "-" indicating that no response was received to the fourth
request.
.IP \fB-d\fR 5
@@ -96,7 +96,7 @@ root user. Regular users should pipe in
.IP \fB-h\fR 5
Print usage message.
.IP \fB-i\fIn\fR 5
-The minimum amount of time (in milliseconds) between sending a ping packet to any target (default is 25).
+ The minimum amount of time (in microseconds) between sending a ping packet to any host (default is 25).
.IP \fB-l\fR 5
Loop sending packets to each target indefinitely. Can be interrupted
with ctl-C; statistics about responses for each target are then displayed.
@@ -106,7 +106,7 @@ Send pings to each of a target host's mu
Same as -d.
.IP \fB-p\fR 5
In looping or counting modes (-l, -c, or -C), this parameter sets the
-time in milliseconds that
+time in microseconds that
.B fping
waits between successive packets to an individual target. Default is
1000.
@@ -120,7 +120,7 @@ a target will be made, not including the
.IP \fB-s\fR 5
Print cumulative statistics upon exit.
.IP \fB-t\fIn\fR 5
-Initial target timeout in milliseconds (default 500). In the default
+Initial target timeout in microseconds (default 2500). In the default
mode, this is the amount of time that
.B fping
waits for a response to its first request. Successive timeouts are
@@ -141,12 +141,12 @@ Sure the open2 usage is not needed in th
example none the less.
.nf
-#!/usr/local/bin/perl
+#!/usr/bin/perl
require 'open2.pl';
$MAILTO = "root";
-$pid = &open2("OUTPUT","INPUT","/usr/local/bin/fping -u");
+$pid = &open2("OUTPUT","INPUT","/usr/local/sbin/fping -u");
@check=("slapshot","foo","foobar");
@@ -167,7 +167,7 @@ Another good example is when you want to
that are currently reachable.
.nf
-#!/usr/local/bin/perl
+#!/usr/bin/perl
$hosts_to_backup = `cat /etc/hosts.backup | fping -a`;