On Thu, Oct 03, 2002 at 10:21:29AM -0400, Wesley Darlington wrote:
> On Thu, Oct 03, 2002 at 03:17:27PM +0100, Stephen Shirley wrote:
> > On Thu, Oct 03, 2002 at 03:09:21PM +0100, Ciaran Treanor wrote:
> > > > > mkfifo /tmp/something
> > > > > program1 < /tmp/something &
> > > > > program2 < /tmp/something &
> > > > > cat myfile > /tmp/something
> > >
> > > When program1 consumes a character from the fifo isn't that
> > > character no longer available for consumption by program2 ?
> > Yup.
>> Doh! :-)
It is possible to use fifos as a solution here if you want.
prog1 < /tmp/out1 &
prog2 < /tmp/out2 &
prog3 < /tmp/out3 &
cat myfile | tee /tmp/out1 | tee /tmp/out2 | tee /tmp/out3
High salt diets are bad for you - but only outside marriage.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!