DragonFly BSD
DragonFly bugs List (threaded) for 2004-07
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: pb on multiple <pipe> with tail ?

From: "Simon 'corecode' Schubert" <corecode@xxxxxxxxxxxx>
Date: Sat, 17 Jul 2004 17:32:58 +0200

Hello rmkml,

thanks for your excellent testing and reporting of bugs!

This is a known issue and (mostly) independent of the OS. The problem is that grep writes buffered when the output is no tty. This means it will wait until the buffer has filled up before it will flush the data. In fact it's stdio.h that is doing that.

I am not aware of a proper solution other than (as discussed before) implementing a flag to force grep to write line buffered.


On 17.07.2004, at 13:40, rmkml wrote:
and my question is : multiple pipe with tail not work ?

(same pb with freebsd v4.x)

test 1 :

 xtermA :
 # tail -f /var/log/messages | grep test

 xtermB :
 # logger test

 ok I view syslog in xtermA :
 Jul 17 15:35:51 <1.5> dgfly1 root: test

test2 :

 xtermA :
 # tail -f /var/log/messages | grep test | grep root

 xtermB :
 # logger test

I don't view syslog in xtermA ?



\ /
 \     ASCII Ribbon Campaign
/ \  Against HTML Mail and News

Attachment: PGP.sig
Description: This is a digitally signed message part

[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]