Skip to content

Instantly share code, notes, and snippets.

@alanbriolat
Last active March 22, 2017 12:23
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 alanbriolat/c2663329affe4644146c28ac681da17b to your computer and use it in GitHub Desktop.
Save alanbriolat/c2663329affe4644146c28ac681da17b to your computer and use it in GitHub Desktop.
Traceroute without traceroute
T=8.8.8.8; MAX=30; for TTL in $(seq $MAX); do ping -c1 -t$TTL $T | grep -i "from"; [ "${PIPESTATUS[0]}" == 0 ]&&break; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment