sxiii

Multi-ping Worldwide Test

Sep 9th, 2011
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.79 KB | None | 0 0
  1. #!/bin/bash
  2. # 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.
  3.  
  4. SITE="nic" # Sitename to ping (for ex, if SITE=nic, script will ping nic.us, nic.com, nic.net, etc)
  5. DOMAINLIST="domainlist.list" # Filename with domain list (this file you can get from my pastebin too)
  6. PINGCOUNT="5" # How many times it will try to ping the destination
  7. CMD="ping" # Which program to use for pinging. Could be fping, ping, etc.
  8. LOGFILE="pinglog.txt" # Where to save results of ping test
  9. PARAMS="-A -q" # Additional parameters to pass to ping program -A adaptive ping, -q quiet ping (print only statistics)
  10.  
  11. cat $DOMAINLIST | while read line;do
  12. $CMD $PARAMS -c $PINGCOUNT $SITE.$line >> $LOGFILE
  13. done
Advertisement
Add Comment
Please, Sign In to add comment