Browse Source

Add aping audible ping tool

master
David Thurstenson 8 months ago
parent
commit
d73734401e
  1. 11
      .bashrc.d/aping.bash

11
.bashrc.d/aping.bash

@ -0,0 +1,11 @@
aping() { # aping: beep when ping fails (reverse behavior of `ping -a <address>`)
local address="$1"
while true; do
if ping -c 1 $address; then
:
else
printf "\a"
fi
sleep 1
done
}
Loading…
Cancel
Save