From owner-freebsd-stable Sun Jun 17 11:33:45 2001 Delivered-To: freebsd-stable@freebsd.org Received: from absinthe2.dyndns.org (adsl-63-192-100-21.dsl.chic01.pacbell.net [63.192.100.21]) by hub.freebsd.org (Postfix) with ESMTP id 8620837B401 for ; Sun, 17 Jun 2001 11:33:39 -0700 (PDT) (envelope-from fred@absinthe2.dyndns.org) Received: (from fred@localhost) by absinthe2.dyndns.org (8.11.3/8.11.3) id f5HIXU132002 for stable@FreeBSD.ORG; Sun, 17 Jun 2001 11:33:30 -0700 (PDT) (envelope-from fred) Date: Sun, 17 Jun 2001 11:33:30 -0700 From: Fred Condo To: stable@FreeBSD.ORG Subject: Re: Benchmarking CVSup Message-ID: <20010617113330.B24751@absinthe.condo.chico.ca.us> References: <15147.11676.233301.492707@guru.mired.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from behanna@zbzoom.net on Sat, Jun 16, 2001 at 06:57:51AM -0400 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, Jun 16, 2001 at 06:57:51AM -0400, Chris BeHanna wrote: > On Sat, 16 Jun 2001, Mike Meyer wrote: > > > Chris BeHanna 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! > > -- > 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message