Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Multi-ping test to find out what best routes your providers has, which countries pages will load faster then other. For example to find a good proxy or web hosting.
- SITE="nic" # Sitename to ping (for ex, if SITE=nic, script will ping nic.us, nic.com, nic.net, etc)
- DOMAINLIST="domainlist.list" # Filename with domain list (this file you can get from my pastebin too)
- PINGCOUNT="5" # How many times it will try to ping the destination
- CMD="ping" # Which program to use for pinging. Could be fping, ping, etc.
- LOGFILE="pinglog.txt" # Where to save results of ping test
- PARAMS="-A -q" # Additional parameters to pass to ping program -A adaptive ping, -q quiet ping (print only statistics)
- cat $DOMAINLIST | while read line;do
- $CMD $PARAMS -c $PINGCOUNT $SITE.$line >> $LOGFILE
- done
Advertisement
Add Comment
Please, Sign In to add comment