home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.programmer
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!convex!convex!tchrist
- From: Tom Christiansen <tchrist@convex.COM>
- Subject: Re: Named pipes
- Message-ID: <1992Jul27.231614.21414@news.eng.convex.com>
- Originator: tchrist@pixel.convex.com
- Sender: usenet@news.eng.convex.com (news access account)
- Nntp-Posting-Host: pixel.convex.com
- Reply-To: tchrist@convex.COM (Tom Christiansen)
- Organization: CONVEX Realtime Development, Colorado Springs, CO
- References: <1992Jul26.165838.1278@news.eng.convex.com> <92033@bu.edu> <1992Jul27.221133.27847@mintaka.lcs.mit.edu>
- Date: Mon, 27 Jul 1992 23:16:14 GMT
- X-Disclaimer: This message was written by a user at CONVEX Computer
- Corp. The opinions expressed are those of the user and
- not necessarily those of CONVEX.
- Lines: 25
-
- From the keyboard of mycroft@hal.gnu.ai.mit.edu (Charles Hannum):
- :
- :In article <92033@bu.edu> tesco@bumetb.bu.edu (Dances With Babes) writes:
- :>
- :> mknod testpipe p
- :> cat testpipe &
- :> ls > testpipe
- :> The "cat" process ends after the ls is sent to the screen.
- :
- :This is the way named pipes have worked since The Dawn of Time. If you
- :want to have multiple processes write to the pipe, you need the reader
- :to reopen it. In the shell, you could do something like this:
- :
- :(while :;do cat testpipe;done)&
-
- Or have the writers all write to a common descriptor:
-
- ( wtr1; wtr2; wtr3 ) > testpipe
-
- --tom
- --
- Tom Christiansen tchrist@convex.com convex!tchrist
-
- "The number of UNIX installations has grown to 10, with more expected."
- - _The UNIX Programmer's Manual_, Second Edition, June, 1972.
-