Asynchronous pipe I/O
rihad
rihad at mail.ru
Wed Nov 5 23:52:53 PST 2008
Nate Eldredge wrote:
> sh prog1 > tmpfile &
> tail -f -c +0 tmpfile | sh prog2
>
BTW, I don't think this would solve my problem as tail -f would block
waiting for more data, as would prog2, so after prog1 finishes writing
data they would block indefinitely on input. I forgot to mention this
was supposed to be a short-lived pipeline, not daemons, as you had
probably thought.
Also, I've already learned how to use misc/buffer correctly so the
problem's gone. Thank you for your time.
More information about the freebsd-hackers
mailing list