ekgping - Electrocardiograph-like visual and audible ping
ekgping [-q] [-ba|-bd] [-t timeout] [-f file] host [-- ping options]
version 1.3
ekgping pings a host. 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).
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.
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), ekgping produces a continuous beep until the host is reachable again.
If specified, ping options are passed on to ping(1). Note that ekgping does not look at them - if they change the output format or set the ping interval too high, ekgping will break.
Only play beeps when the host is alive (the short beeps) or dead (the long flatline beep). Defaults to both, meaning any beep will be played.
You can also use the first letter of the argument, like -ba instead of --beep-when alive.
-ba
--beep-when alive
Play file instead of the default beeps. May be any sound / music file
Do not play beeps, visual output only
Set ping timeout. If no pong was received in this time, ekgping will emit a continuous beep. Accepts a floating point value, defaults to 3.0.
Note that setting this lower than the ping interval (which defaults to 1 second) does not make much sense, unless you want longer beeps per pong.
Show version information and exit
Zero.
None.
ping(1)
File::ShareDir(3pm)
IPC::Run(3pm)
SDL(3pm)
Term::Size(3pm)
ekgping parses the output of ping(1), which means it assumes a certain output style. It will only work with ping(1) programs whose ping -n output matches "<digit> bytes from <ip>: icmp_req=<digit> ttl=<digit> time=<float>".
ping -n
There have been reports about ekgping randomly skipping beeps. This might be an SDL problem, use ekgping -t 0.8 as workaround.
ekgping -t 0.8
Copyright (C) 2011 by Daniel Friesel <derf@finalrewind.org>
0. You just DO WHAT THE FUCK YOU WANT TO.
To install ekgping, copy and paste the appropriate command in to your terminal.
cpanm
cpanm ekgping
CPAN shell
perl -MCPAN -e shell install ekgping
For more information on module installation, please visit the detailed CPAN module installation guide.