bug#21908: find -f breaks pipes ?

2015-11-16 Thread Bob Proulx
Flemming Gulager Danielsen wrote:
> I am new here so if this is not the proper use of the maillist then
> I am sorry.

Others answered your output buffering question.  Let me address the
mailing list question.

When you send a message to bug-coreutils it opens a bug ticket so that
we can track bugs and they won't get lost.  When asking a question
such as you are doing it is better to use the coreutils@gnu.org
mailing list instead.  That is a normal mailing list just for
discussion and no bug tickets opened.  It is the better place for
questions and discussion.

Bob





bug#21908: find -f breaks pipes ?

2015-11-14 Thread Bernhard Voelker
On 11/13/2015 06:17 PM, Pádraig Brady wrote:
> You can change the buffering with stdbuf. For e.g.:
> 
>   tail -f testfile | stdbuf -oL tr -d H | grep e

Additionally, depending on whether you furtherly process the output,
e.g. with yet another "| grep .", you see that grep also uses some
output buffering, so you may end up with:

 tail -f testfile \
   | stdbuf -oL tr -d H \
   | grep --line-buffered e \
   | grep .

Have a nice day,
Berny





bug#21908: find -f breaks pipes ?

2015-11-13 Thread Flemming Gulager Danielsen
Hi Guyz!

I am new here so if this is not the proper use of the maillist then I am sorry. 
I normally think I know my way around shells, but this I cant get the below to 
work. And I am wondering if it is a bug I need to report on tail util.

I run this command on a file.

tail -f testfile | tr -d H | grep e

while I in another shell

echo "Testing" >> testfile.

If leave out "| grep e" I get the output. I have tried with xargs echo {} also, 
but I get nothing if I go beond 2 pipes. It works fine if I go through a while 
read loop.

---
Med venlig hilsen / best regards
Flemming Danielsen
IT-Specialist
[cid:image001.gif@01D0A42D.53D97C30]
Email:f...@komplex-it.dk
Mobil+45 2026 9291
Telefon +45 8833 0478


[cid:image002.png@01D0A42D.53D97C30]


Komplex-it A/S * Lyskær 13B * 2730 Herlev * 
www.komplex-it.dk



bug#21908: find -f breaks pipes ?

2015-11-13 Thread Pádraig Brady
tag 21908 notabug
close 21908
stop

On 13/11/15 14:20, Flemming Gulager Danielsen wrote:
> Hi Guyz!
> 
> I am new here so if this is not the proper use of the maillist then I am 
> sorry. I normally think I know my way around shells, but this I cant get the 
> below to work. And I am wondering if it is a bug I need to report on tail 
> util.
> 
> I run this command on a file.
> 
> tail -f testfile | tr -d H | grep e
> 
> while I in another shell
> 
> echo “Testing” >> testfile.
> 
> If leave out “| grep e” I get the output. I have tried with xargs echo {} 
> also, but I get nothing if I go beond 2 pipes. It works fine if I go through 
> a while read loop.

The data is buffered as detailed at:
http://www.pixelbeat.org/programming/stdio_buffering/

You can change the buffering with stdbuf. For e.g.:

  tail -f testfile | stdbuf -oL tr -d H | grep e

cheers,
Pádraig.