Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
RE: trouble with multiple pipes
- X-seq: zsh-users 2371
- From: "Andrej Borsenkow" <borsenkow.msk@xxxxxx>
- To: <dominik.vogt@xxxxxx>, <zsh-users@xxxxxxxxxxxxxx>
- Subject: RE: trouble with multiple pipes
- Date: Wed, 9 Jun 1999 20:41:58 +0400
- Importance: Normal
- In-reply-to: <19990609182901.D3376@xxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author