Date: Mon, 18 Jun 2001 11:24:34 +0800 From: Calvin NG <calvinng@brel.com> To: Fred Condo <fred@condo.chico.ca.us> Cc: stable@FreeBSD.ORG Subject: Re: Benchmarking CVSup Message-ID: <20010618112434.C43103@brel.com> In-Reply-To: <20010617113330.B24751@absinthe.condo.chico.ca.us>; from fred@condo.chico.ca.us on Sun, Jun 17, 2001 at 11:33:30AM -0700 References: <15147.11676.233301.492707@guru.mired.org> <Pine.BSF.4.32.0106160656270.11219-100000@topperwein.dyndns.org> <20010617113330.B24751@absinthe.condo.chico.ca.us>
next in thread | previous in thread | raw e-mail | index | archive | help
Greetings, hey, that only count the hops, I would tot avg ping response would be more interesting, so how about inside the loop, do echo -n "cvsup${i} " ping -c 10 cvsup${i}.freebsd.org | tail -1 Regards, /calvin lines with :> are quotes from Fred Condo's email :> On Sat, Jun 16, 2001 at 06:57:51AM -0400, Chris BeHanna wrote: :> > 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 :> :> or this: :> traceroute -n cvsup${i}.freebsd.org 2>/dev/null | wc -l :> :> > :> > Works great. Thanks! :> > 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?20010618112434.C43103>