repeatedly run MTR
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
function quit () | |
{ | |
echo -e "\n*** Exiting by user keystroke ***\n" | |
exit $? | |
} | |
# trap keyboard interrupt (control-c) | |
trap quit SIGINT | |
echo -e "\n*** Press ctrl+c to quit. ***\n\n" | |
while true | |
do | |
mtr -r -c 100 -n <IP or Domain Name> | |
echo "\n\n" | |
sleep 60 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment