unbuffering shell pipelines

Scott Edwards supadupa at gmail.com
Fri Nov 18 14:43:12 MST 2011


Hello,

I found what I think is a pretty good explanation what happens when shell
pipelines are stacked, and real time output stalls.

Eg,

tail -f messages
real time, lots of noise.

vs

tail -f messages | grep -F ip.ip.ip.ip
not so real time, just what I want.

Why can't I have both?

http://www.pixelbeat.org/programming/stdio_buffering/

tail -f messages | stdbuf -oL grep -F ip.ip.ip.ip
real time, just what I want.


Regards,


Scott Edwards.


More information about the PLUG mailing list