From 513f4e1aef7f49537c6e2dcbd9528a62180b34c0 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 15 Jun 2011 18:50:15 +0200 Subject: Documentation --- bin/ekgping | 40 ++++++++++++++++++++++++++++++++++++---- 1 file changed, 36 insertions(+), 4 deletions(-) (limited to 'bin/ekgping') diff --git a/bin/ekgping b/bin/ekgping index 47b1c8c..f946c53 100755 --- a/bin/ekgping +++ b/bin/ekgping @@ -11,7 +11,7 @@ use SDL::Music; use Term::Size; use Time::HiRes qw(usleep); -our $VERSION = '0.1'; +our $VERSION = '0.0'; my $host = shift; my $id = 0; @@ -122,20 +122,38 @@ __END__ =head1 NAME +B - Electrocardiograph-like visual and audible ping + =head1 SYNOPSIS +B I + =head1 VERSION +version 0.0 + =head1 DESCRIPTION -=head1 OPTIONS +B pings a I. Unlike ping(1), it does not output text, but +instead displays the results in a visual and audible manner, somewhat similar +to an electrocardiograph (short ECG / EKG). -=over +It displays a line on the whole width of the terminal. By default, the line is +flat ("_"). Everytime a pong gets in, a spike ("^" or "-", depending on RTT) +is drawn. -=back +Also, everytime a pong is received, a short beep is played. If the host does +not respond for a few seconds (i.e. is unreachable/dead), B produces +a continuous beep until the host is reachable again. + +=head1 OPTIONS + +None. =head1 EXIT STATUS +Zero. + =head1 CONFIGURATION None. @@ -144,10 +162,24 @@ None. =over +=item * IPC::Run(3pm) + +=item * SDL::Mixer(3pm) + +=item * SDL::Music(3pm) + +=item * Term::Size(3pm) + =back =head1 BUGS AND LIMITATIONS +B parses the output of ping(1), which means it assumes a certain +output style. It will only work with ping(1) programs whose C<< ping -n >> output matches +" bytes from : icmp_req= ttl= time=". + +If a host is unreachable from the very beginning, B fails to start. + =head1 AUTHOR Copyright (C) 2011 by Daniel Friesel Ederf@finalrewind.orgE -- cgit v1.2.3