EnderUNIX Team.


EnderUNIX tips

Mail to My Friend , Home Page

[ FreeBSD ]

"How to find the fastest CVSUP server" - Ülkü SAYILAN - (2005-02-18 10:31:14)   [6044]

#!/usr//local/bin/bash
echo "finding fastest cvsup server"

for i in `jot 17`; do
cvsserver="cvsup${i}"
t=`ping -c 1 cvsup${i}.freebsd.org | grep time | awk -F= '{print $4}'| awk '{print $1}' | sed 's/.//'`

echo "$((t)) $cvsserver" >> /tmp/cvstest
done

echo "`sort -n /tmp/cvstest | head -1 | awk '{print $2}'`.freebsd.org is the fastest"

rm /tmp/cvstest




Mail to My Friend , Home Page