zsh-users
 help / color / mirror / code / Atom feed
From: Dominik Vogt <dominik_vogt@hp.com>
To: zsh-users@sunsite.auc.dk
Subject: Re: trouble with multiple pipes
Date: Wed, 9 Jun 1999 19:08:38 -0600	[thread overview]
Message-ID: <19990609190838.E3376@hp.com> (raw)
In-Reply-To: <000b01beb296$fdbf16f0$21c9ca95@mow.siemens.ru>; from borsenkow.msk@sni.de on Wed, Jun 09, 1999 at 08:41:58PM +0400

On Wed, Jun 09, 1999 at 08:41:58PM +0400, borsenkow.msk@sni.de wrote:
> > 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.

Ah, yes, of course.

> > 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.

Hm, I'd like to see the output in real-time as well as to log it in a file.
I'll make up some kind of script using only zsh builtins :-)

Thanks

Dominik ^_^

-- 
Dominik Vogt, Hewlett-Packard GmbH, Dept. BVS
Herrenberger Str.130, 71034 Boeblingen, Germany
phone: 07031/14-4596, fax: 07031/14-3883, dominik_vogt@hp.com


  reply	other threads:[~1999-06-09 17:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-06-10  0:29 Dominik Vogt
1999-06-09 16:41 ` Andrej Borsenkow
1999-06-10  1:08   ` Dominik Vogt [this message]
1999-06-16 20:18 ` dado
1999-06-16 22:22   ` Dominik Vogt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=19990609190838.E3376@hp.com \
    --to=dominik_vogt@hp.com \
    --cc=zsh-users@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).