From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10871 invoked from network); 9 Jun 1999 16:43:06 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 9 Jun 1999 16:43:06 -0000 Received: (qmail 1129 invoked by alias); 9 Jun 1999 16:42:45 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 2371 Received: (qmail 1121 invoked from network); 9 Jun 1999 16:42:44 -0000 From: "Andrej Borsenkow" To: , Subject: RE: trouble with multiple pipes Date: Wed, 9 Jun 1999 20:41:58 +0400 Message-ID: <000b01beb296$fdbf16f0$21c9ca95@mow.siemens.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <19990609182901.D3376@hp.com> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 > I am using zsh 3.0.5 on a 2.2.5 Linux kernel. I encountered a problem > when trying to use multiple pipes with and a command that does not > finish: > > # tail -f foo > 1 > 2 > 3 > 4 > 5 > (pressed ^C to stop tail) > > Now I don't want to see all lines with a '5': > > # tail -f foo | grep -v 5 I am surprised, that you get any output here. I don't get anything at all. The problem is, that grep buffers input/output (I won't discuss, if it is a bug or a feature). So, you won't see anything till the whole buffer is filled. In my case grep does not do any write at all. > Unfortunately I need to filter the output from a running > daemon in this way, but I'm out of ideas. > What do you mean? If you need to write the continous output to a file - it is O.K. As soon, as daemon fills up the whole buffer, it will be written off. /andrej