Skip to content

Instantly share code, notes, and snippets.

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