Created
August 4, 2021 01:44
-
-
Save JasonThomasData/e0e5813de38a821651fbd0b3140e46d3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/usr/bin/env bash | |
# For proving you have issues with your ISP. You would see the packets stop at their IPaddress in that case. | |
# Use a crontab like: | |
# * * * * * /home/john/RECORD_TRACEROUTE.sh | |
# The above will save it every minute | |
PATH=/home/john/TRACEROUTE/ | |
FILENAME=$(/bin/date +%A_%d_%m) | |
FILEPATH=$PATH$FILENAME | |
DATE=$(/bin/date) | |
echo $DATE >> $FILEPATH | |
/usr/sbin/traceroute 8.8.8.8 >> $FILEPATH | |
echo "---" >> $FILEPATH | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment