Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 06 Nov 2008 11:52:49 +0400
From:      rihad <rihad@mail.ru>
To:        Nate Eldredge <neldredge@math.ucsd.edu>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Asynchronous pipe I/O
Message-ID:  <4912A251.8010604@mail.ru>
In-Reply-To: <Pine.GSO.4.64.0811050857000.1597@zeno.ucsd.edu>
References:  <4911A23B.7050104@mail.ru> <Pine.GSO.4.64.0811050857000.1597@zeno.ucsd.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4912A251.8010604>