tee like program to pipe to another program?

pd at pd pd at pd
Fri Jun 7 23:35:25 AEST 1991


>>>>> On 6 Jun 91 09:39:39 GMT, pete at othello.dartmouth.edu (Pete Schmitt) said:

Pete> Is there a tee like program that will pipe down to another program?

You can get the effect of this on some machines by using tee and a
named pipe or fifo file. (This is not a general solution.)

to pipe the output from lotsofdataprogram to stream1 and stream2,


mknod fifo p
lotsofdataprogram | tee fifo | stream1 ... &
cat fifo | stream2 ...


Don't forget to rm fifo when done with it.

--
 Regards,			 pd at x.co.uk          IXI Limited
	Paul Davey		 pd at ixi.uucp         62-74 Burleigh St.
				 ...!uunet!ixi!pd    Cambridge  U.K.
 "These are interesting times"   +44 223 462 131     CB1  1OJ      
				 USA: 1 800 XDESK 57



More information about the Comp.unix.questions mailing list