Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@pvalena
Last active May 31, 2022 12:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pvalena/c543a1681e8a2d066070a995dbca3ea4 to your computer and use it in GitHub Desktop.
Save pvalena/c543a1681e8a2d066070a995dbca3ea4 to your computer and use it in GitHub Desktop.
#!/usr/bin/bash
trap 'echo; exit 2' 2
[[ "$1" == "-n" ]] && {
shift
:
} || {
clear
}
[[ "$1" == "-t" || "$1" == "-l" ]] && {
shift
echo "Stability test '$1'"
shift
}
[[ "$1" ]] || exec $0 google.cz seznam.cz rychlost.cz vutbr.cz www.fit.vutbr.cz www.czc.cz nic.cz volny.cz img.ly
(
while [[ "$1" ]] ; do
ping -Aqc 100 "$1"
sleep 0.5
shift
done
) | grep -vE "^PING "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment