From owner-freebsd-arch Tue Jun 19 3:29: 5 2001 Delivered-To: freebsd-arch@freebsd.org Received: from ringworld.nanolink.com (ringworld.nanolink.com [195.24.48.13]) by hub.freebsd.org (Postfix) with SMTP id B99A037B406 for ; Tue, 19 Jun 2001 03:28:59 -0700 (PDT) (envelope-from roam@orbitel.bg) Received: (qmail 40054 invoked by uid 1000); 19 Jun 2001 10:27:28 -0000 Date: Tue, 19 Jun 2001 13:27:28 +0300 From: Peter Pentchev To: arch@FreeBSD.org Cc: Chris Wasser Subject: Re: netbsd rc.subr diff #2 Message-ID: <20010619132728.A40002@ringworld.oblivion.bg> Mail-Followup-To: arch@FreeBSD.org, Chris Wasser References: <20010617164716.H582@skunkworks.arpa.mil> <20010618180052.B540@dragon.nuxi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010618180052.B540@dragon.nuxi.com>; from arch@freebsd.org on Mon, Jun 18, 2001 at 06:00:52PM -0700 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Jun 18, 2001 at 06:00:52PM -0700, David O'Brien wrote: > On Sun, Jun 17, 2001 at 04:47:17PM -0600, Chris Wasser wrote: > > - ps -p $_pid -o 'pid,command' | while read _npid _arg0 _argv; do > > - if [ "$_npid" = "PID" ]; then > > - continue > > - fi > > + ps -p $_pid -o 'pid,command' | tail +2 | sort +1 | while read _npid _arg0 _argv; do > > > Will people say the 2 added |'s slows things down [too much]? > Remember NetBSD runs on some rather slow, old hardware. And also.. Apologies for the stupid question, but - could this ever be invoked before /usr is mounted and /usr/bin/tail and /usr/bin/sort are available? G'luck, Peter -- This inert sentence is my body, but my soul is alive, dancing in the sparks of your brain. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message