From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6493 invoked from network); 18 Dec 2003 00:14:44 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 18 Dec 2003 00:14:44 -0000 Received: (qmail 13036 invoked by alias); 18 Dec 2003 00:14:20 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6916 Received: (qmail 13025 invoked from network); 18 Dec 2003 00:14:19 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 18 Dec 2003 00:14:19 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [217.160.134.217] by sunsite.dk (MessageWall 1.0.8) with SMTP; 18 Dec 2003 0:14:18 -0000 Received: (root@lyta.akte.de) by lyta.akte.de id convert rfc822-to-8bit; Thu, 18 Dec 2003 01:14:00 +0100 Received: from condor.int.spiegl.de (really 82.82.52.12 [dsl-082-082-052-012.arcor-ip.net]) by lyta.akte.de via kasmail (2.9) id 2003-12-18 01:13:48 KRecCount: 1 Received: from condor.int.spiegl.de (spiegl@localhost [127.0.0.1]) by condor.int.spiegl.de (8.12.9/8.12.9/Debian-5) with ESMTP id hBI0C16j028066 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Thu, 18 Dec 2003 01:12:01 +0100 Received: (from spiegl@localhost) by condor.int.spiegl.de (8.12.9/8.12.9/Debian-5) id hBI0C19B028062 for zsh-users@sunsite.dk; Thu, 18 Dec 2003 01:12:01 +0100 X-Authentication-Warning: condor.int.spiegl.de: spiegl set sender to zsh.Andy@spiegl.de using -f Date: Thu, 18 Dec 2003 01:12:01 +0100 From: Andy Spiegl To: ZSH User List Subject: how to pipe to stdout and stderr Message-ID: <20031218001201.GA27866@spiegl.de> Mail-Followup-To: ZSH User List Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: 8BIT User-Agent: Mutt/1.4i X-PGP-GPG-Keys: mail -s "send pgp" auto@spiegl.de Organization: KasCada GbR Maybe I'm just too tired right now, but I can't find the solution how to pipe the standard output and standard error to 2 different programs. Example: program foo (prints to stdout and stderr) program bar1 should receive only stdout program bar2 should receive only stderr How can I do this? Someone knows how to do that in bash, too? Thanks so much, Andy. -- http://peru.spiegl.de Our project http://radiomaranon.org.pe Radio Marañón, Jaén, Perú o _ _ _ ------- __o __o /\_ _ \\o (_)\__/o (_) -o) ----- _`\<,_ _`\<,_ _>(_) (_)/<_ \_| \ _|/' \/ /\\ ---- (_)/ (_) (_)/ (_) (_) (_) (_) (_)' _\o_ _\_v ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ If you can't write your ideas on the back of my calling card, you don't have a clear idea. -- David Belasco