pb on multiple <pipe> with tail ?

Simon 'corecode' Schubert corecode at fs.ei.tum.de
Sat Jul 17 08:34:41 PDT 2004


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.

cheers
  simon
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 ?

Regards

Rmkml at xxxxxxxxxx



--
/"\
\ /
 \     ASCII Ribbon Campaign
/ \  Against HTML Mail and News
Attachment:
PGP.sig
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pgp00005.pgp
Type: application/octet-stream
Size: 186 bytes
Desc: "Description: This is a digitally signed message part"
URL: <http://lists.dragonflybsd.org/pipermail/bugs/attachments/20040717/93d6de6a/attachment-0022.obj>


More information about the Bugs mailing list