Skip to content

Instantly share code, notes, and snippets.

@lyndell

lyndell/mtr_loop.sh

Last active Aug 2, 2016
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