livetail-cli icon indicating copy to clipboard operation
livetail-cli copied to clipboard

Flush pipe so that output can be piped to other commands

Open hexa00 opened this issue 6 years ago • 3 comments

Running a query to the console outputs the contents fast.

But doing the same thing and piping to tee or to grep like

livetail ... | tee log livetail .. | grep "..."

Data doesn't arrive to the piped process until livetail is closed or a good amount of data has passed...

I think this may be because livetail doesn't flush it's writes to the pipe?

hexa00 avatar Jul 16 '18 17:07 hexa00

Same issue.

j14s avatar Aug 10 '18 18:08 j14s

Works perfectly for me with grep and ag ;)

h3x89 avatar Jan 21 '19 14:01 h3x89

I use the unbuffer command from the expect package. This forces everything to be flushed immediately.

unbuffer livetail ...

mdillavou avatar Nov 21 '19 23:11 mdillavou