Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Jun 2001 11:20:35 -0700 (PDT)
From:      Lamont Granquist <lamont@scriptkiddie.org>
To:        John Merryweather Cooper <jmcoopr@webmail.bmi.net>
Cc:        Donn Miller <hackr_d@yahoo.com>, Chris BeHanna <behanna@zbzoom.net>, FreeBSD-Stable <stable@FreeBSD.ORG>
Subject:   Re: Benchmarking CVSup
Message-ID:  <20010616111959.P67897-100000@warez.scriptkiddie.org>
In-Reply-To: <20010615232923.K560@johncoop>

next in thread | previous in thread | raw e-mail | index | archive | help



On Fri, 15 Jun 2001, John Merryweather Cooper wrote:
>  Counting the lines in each traceroute output would give a good
> approximation of the number of hops . . .

tail -1 works to pull off the last hop:

#!/bin/sh

for i in `jot 16`
do
    echo -n "cvsup${i}  "
    traceroute -n cvsup${i}.freebsd.org | tail -1
done | sort +1 -n | tee mirrors.out



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010616111959.P67897-100000>