Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flush pipe so that output can be piped to other commands #25

Open
hexa00 opened this issue Jul 16, 2018 · 3 comments
Open

Flush pipe so that output can be piped to other commands #25

hexa00 opened this issue Jul 16, 2018 · 3 comments

Comments

@hexa00
Copy link

hexa00 commented Jul 16, 2018

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?

@j14s
Copy link

j14s commented Aug 10, 2018

Same issue.

@h3x89
Copy link

h3x89 commented Jan 21, 2019

Works perfectly for me with grep and ag ;)

@mdillavou
Copy link

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

unbuffer livetail ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants