Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!crdgw1!sungod!davidsen From: davidsen@sungod.crd.ge.com (William Davidsen) Newsgroups: comp.unix.wizards Subject: Re: Examples of multiple stream shell scripts Keywords: multiple streams, parallel pipes Message-ID: <671@crdgw1.crd.ge.com> Date: 7 Jun 89 19:56:03 GMT References: <258@ethz-inf.UUCP> Sender: news@crdgw1.crd.ge.com Reply-To: davidsen@crdos1.UUCP (bill davidsen) Organization: General Electric Corp. R&D, Schenectady, NY Lines: 27 In article <258@ethz-inf.UUCP> wyle@inf.ethz.ch writes: | Consider the following pipleline: | | | cos2 | / \ | / \ | cos1 < file cos4 | cos5 > report | \ / / | \ / / | cos3 ------- | | | where the output of cos2 and cos3 are join(1)ed to form the input to | cos4; the output of cos4 and cos3 are joined again for cos5. | | Can tee(1) send output to multiple *streams* (not files)? | What about named pipes? You have it. But what are you doing in cos5? Reading both streams at once?? You can do them consecutively with cat, but not really mix them. Well, maybe with a FIFO if you flushed the buffers, but I wouldn't like to count on it. bill davidsen (davidsen@crdos1.crd.GE.COM) {uunet | philabs}!crdgw1!crdos1!davidsen "Stupidity, like virtue, is its own reward" -me