From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9963 invoked from network); 16 Jun 1999 22:20:53 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 16 Jun 1999 22:20:53 -0000 Received: (qmail 11686 invoked by alias); 16 Jun 1999 22:20:25 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 2393 Received: (qmail 11679 invoked from network); 16 Jun 1999 22:20:25 -0000 X-Authentication-Warning: DarkSun.nodomain: avatar set sender to dominik.vogt@gmx.de using -f Message-ID: <19990617002217.A2937@gmx.de> Date: Thu, 17 Jun 1999 00:22:17 +0200 From: Dominik Vogt To: dado , zsh-users@sunsite.auc.dk Subject: Re: trouble with multiple pipes Reply-To: dominik.vogt@gmx.de References: <19990609182901.D3376@hp.com> <37680689.801EFB1E@pdi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.1i In-Reply-To: <37680689.801EFB1E@pdi.com>; from dado on Wed, Jun 16, 1999 at 01:18:18PM -0700 On Wed, Jun 16, 1999 at 01:18:18PM -0700, dado wrote: > Dominik Vogt wrote: > > > (snip) > > have you tried egrep ? Yes, it works, but that doesn't really help since there are more commands (other than grep) in the pipe I use. Anyway, I solved the problem by writing a zsh script that does the filtering with builtin commands :) (zsh is really *great*) > # tail -f foo | egrep -v "5|4" > > > And now I want to remove '4' from the output too: > > > > # tail -f foo | grep -v 5 | grep -v 4 > > (no output generated, pressed ^C) > > > > But when I terminate 'tail' > > # killall tail > > 1 > > 2 > > 3 > > zsh: terminated tail -f foo | > > zsh: done grep -v 5 | grep -v 4 > > > > Why doesn't get the output of the first pipe get through to > > the second one? Any ideas how to circumvent this problem? > > Unfortunately I need to filter the output from a running > > daemon in this way, but I'm out of ideas. > > > > The same behaviour occurs on HP-UX 10.20 (not that I think the > > OS matters) or with ksh or bash. Bye Dominik ^_^ -- Dominik Vogt, dominik.vogt@gmx.de Reply-To: dominik.vogt@gmx.de