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

Pipes are not read after they are exhausted #8

Open
eplodn opened this issue Aug 1, 2019 · 0 comments
Open

Pipes are not read after they are exhausted #8

eplodn opened this issue Aug 1, 2019 · 0 comments

Comments

@eplodn
Copy link

eplodn commented Aug 1, 2019

We need to periodically run some command and add the output to the plot.

session-1 $ mkfifo /tmp/fifo
session-1 $ echo "i\tx\ty" >> /tmp/fifo
session-1 $ echo "1\t0\t3" >> /tmp/fifo
session-1 $ echo "2\t1\t4" >> /tmp/fifo
...

session-2 $ ./termeter < /tmp/fifo
# termeter starts and plots the data

session-1 $ echo "10\t33\t44" >> /tmp/fifo
# this data does not get plotted since fifo is exhausted by the start of termeter

Workaround is sending the output to a temp file and starting termeter with tail -f tempfile; it would be great if we could do it without using tail.

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

1 participant