=item -
Subtract one second from the current update interval.
=item Ctrl-C
Terminate the script.
=back
=head1 THE .PINGOMATIC.HOSTS FILE
Each line in the F<~/.pingomatic.hosts> file can consist of a I<host>,
a I<host>:I<port>, or a I<host>:I<port>/I<protocol> specification.
Empty lines and lines beginning with a '#' are ignored.
=head1 IMPLEMENTATION DETAILS
If no port is specified or "ping" is used as a port name, then the
system command C<ping> is used. This is preferable because otherwise
pingomatic has to run as root. In all other cases L<Net::Ping> is
used.
=head1 EXAMPLES
Here's an example (which probably only works on Linux) to ping all
hosts with a current tcp connection from our host:
cat /proc/net/tcp | sed -e '1 d' -e 's/^ *//' | cut -d" " -f3 | grep -v "^00000000" | cut -d":" -f1 | perl -nle '@x =
/(..)/g; print join(".", reverse(map { hex($_) } @x));' > /tmp/hosts
pingomatic /tmp/hosts
=head1 README
This utility pings to a number of hosts in parallel.
=head1 FILES
~/.pingomatic.hosts - A list of host names to ping. The file should
consist of hostnames or hostname:port specifications, one per line.
=head1 PREREQUISITES
Event, Term::ReadKey.
=head1 OSNAMES
only tested on Linux, FreeBSD and Solaris
=head1 SCRIPT CATEGORIES
Networking
=head1 AUTHOR
Slaven Rezic <slaven@rezic.de>
=head1 SEE ALSO
ping(1).
=cut
=7=
THE END |