livetail-cli
livetail-cli copied to clipboard
Flush pipe so that output can be piped to other commands
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?
Same issue.
Works perfectly for me with grep and ag ;)
I use the unbuffer command from the expect package. This forces everything to be flushed immediately.
unbuffer livetail ...