Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Jun 2001 06:57:51 -0400 (EDT)
From:      Chris BeHanna <behanna@zbzoom.net>
To:        Mike Meyer <mwm@mired.org>
Cc:        FreeBSD-Stable <stable@freebsd.org>
Subject:   Re: Benchmarking CVSup
Message-ID:  <Pine.BSF.4.32.0106160656270.11219-100000@topperwein.dyndns.org>
In-Reply-To: <15147.11676.233301.492707@guru.mired.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 16 Jun 2001, Mike Meyer wrote:

> Chris BeHanna <behanna@zbzoom.net> types:
> > There's probably a better way to do this (e.g., sort the output in
> > increasing order of hopcount):
>
> Yes, but why resort to
>
> > #!/usr/bin/perl
>
> when you can just do:
>
> for i in `jot 16`
>   do
>     echo -n "cvsup${i}	"
>     traceroute -n cvsup${i}.freebsd.org 2>&1 | wc -l
>   done | sort +1 -n

    I quote:  "There's probably a better way to do this...."  :-)

> Getting the correct hop count is left as an exercise for the reader.

    -traceroute -n cvsup${i}.freebsd.org 2>&1 | wc -l
    +expr `traceroute -n cvsup${i}.freebsd.org 2>&1 | wc -l` - 1

Works great.  Thanks!

-- 
Chris BeHanna
Software Engineer                   (Remove "bogus" before responding.)
behanna@bogus.zbzoom.net
I was raised by a pack of wild corn dogs.


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?Pine.BSF.4.32.0106160656270.11219-100000>