From owner-freebsd-questions@FreeBSD.ORG Wed Apr 6 07:48:33 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 35C5716A4CE for ; Wed, 6 Apr 2005 07:48:33 +0000 (GMT) Received: from mail.r.caley.org.uk (82-41-208-48.cable.ubr12.edin.blueyonder.co.uk [82.41.208.48]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1B2E143D2D for ; Wed, 6 Apr 2005 07:48:32 +0000 (GMT) (envelope-from rjc@caley.org.uk) Received: from pele.r.caley.org.uk (pele.r.caley.org.uk [10.0.0.12]) by mail.r.caley.org.uk (8.13.3/8.13.3) with ESMTP id j367mOUn003810; Wed, 6 Apr 2005 08:48:25 +0100 (BST) (envelope-from rjc@caley.org.uk) Received: from pele.r.caley.org.uk (localhost [127.0.0.1]) by pele.r.caley.org.uk (8.13.3/8.13.3) with ESMTP id j367mOu0088298; Wed, 6 Apr 2005 08:48:24 +0100 (BST) (envelope-from rjc@bast.r.caley.org.uk) Received: (from rjc@localhost) by pele.r.caley.org.uk (8.13.3/8.13.3/Submit) id j367mNWg088295; Wed, 6 Apr 2005 08:48:23 +0100 (BST) (envelope-from rjc@bast.r.caley.org.uk) X-Authentication-Warning: pele.r.caley.org.uk: rjc set sender to rjc@bast.r.caley.org.uk using -f Sender: rjc@caley.org.uk To: mrspock@esfm.ipn.mx References: <63501.201.135.130.41.1112718721.squirrel@201.135.130.41> From: Richard Caley In-Reply-To: <63501.201.135.130.41.1112718721.squirrel@201.135.130.41> Date: 06 Apr 2005 08:48:23 +0100 Message-ID: <87ekdo2vnc.fsf@pele.r.caley.org.uk> Lines: 20 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: freebsd-questions@freebsd.org Subject: Re: shell question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Apr 2005 07:48:33 -0000 In article <63501.201.135.130.41.1112718721.squirrel@201.135.130.41>, mrspock (m) writes: m> The problem is that I don't want to use the temporary m> file that I used above (stdout, stderr, out), I just m> want a "filter" If you want to rearange the output so that all the errors are after all the non errors, then you are going to need storage of some sort. I think that is logically unavoidable. There may be some kind of shuffle you can do with named pipes or something, but those kind of things have limited storage. Any time your command produces more error output than that space can hold, it will be stopped. Since you are not reading that stream until the main output is finished you'd then have a deadlock. -- Mail me as MYFIRSTNAME@MYLASTNAME.org.uk _O_ |<