Skip to content

Instantly share code, notes, and snippets.

@JasonThomasData
Created August 4, 2021 01:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JasonThomasData/e0e5813de38a821651fbd0b3140e46d3 to your computer and use it in GitHub Desktop.
Save JasonThomasData/e0e5813de38a821651fbd0b3140e46d3 to your computer and use it in GitHub Desktop.
#!/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