Last active
August 2, 2016 02:47
-
-
Save lyndell/9eeefe7ac63119a5a9876dc9787e60af to your computer and use it in GitHub Desktop.
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