From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13030 invoked from network); 18 Dec 2003 02:25:24 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 18 Dec 2003 02:25:24 -0000 Received: (qmail 6629 invoked by alias); 18 Dec 2003 02:25:09 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6920 Received: (qmail 3824 invoked from network); 18 Dec 2003 02:18:27 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 18 Dec 2003 02:18:27 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [200.154.55.224] by sunsite.dk (MessageWall 1.0.8) with SMTP; 18 Dec 2003 2:18:26 -0000 Received: from gunga.terra.com.br (gunga.terra.com.br [200.176.3.45]) by chiapa.terra.com.br (Postfix) with ESMTP id 1CA86EC0F0; Thu, 18 Dec 2003 00:18:25 -0200 (BRST) Received: from 192.168.1.3 (unknown [200.96.104.238]) (authenticated user hisham@terra.com.br) by gunga.terra.com.br (Postfix) with ESMTP id E5F8F128050; Thu, 18 Dec 2003 00:18:18 -0200 (BRST) From: Hisham Muhammad To: Andy Spiegl , ZSH User List Subject: Re: how to pipe to stdout and stderr Date: Thu, 18 Dec 2003 00:17:44 -0200 User-Agent: KMail/1.5.4 References: <20031218001201.GA27866@spiegl.de> <1071711880.5099.9.camel@umarumohammed> <20031218020123.GA7059@spiegl.de> In-Reply-To: <20031218020123.GA7059@spiegl.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200312180017.44608.hisham@apple2.com> On Thursday 18 December 2003 00:01, Andy Spiegl wrote: > > ls foo bar > stdout 2> stderr > > Thanks, but I don't want to redirect to 2 files, but pipe to 2 programs. Use mkfifo, maybe? hisham@aria ~/test] mkfifo err hisham@aria ~/test] mkfifo out hisham@aria ~/test] cat out | tac > out.txt & hisham@aria ~/test] cat err | tr '[:lower:]' '[:upper:]' > err.txt & hisham@aria ~/test] ls * zzz > out 2> err hisham@aria ~/test]cat err.txt LS: ZZZ: NO SUCH FILE OR DIRECTORY hisham@aria ~/test] ls -1 err err.txt out out.txt hisham@aria ~/test] cat out.txt out.txt out err.txt err -- Hisham Muhammad "...and this is the first step."