Skip to content

Instantly share code, notes, and snippets.

@lyndell
Last active August 2, 2016 02:47
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
repeatedly run MTR
#!/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