home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!mintaka.lcs.mit.edu!hal.gnu.ai.mit.edu!mycroft
- From: mycroft@hal.gnu.ai.mit.edu (Charles Hannum)
- Newsgroups: comp.unix.programmer
- Subject: Re: Named pipes
- Message-ID: <1992Jul27.221133.27847@mintaka.lcs.mit.edu>
- Date: 27 Jul 92 22:11:33 GMT
- References: <14u80cINNbd8@grasp1.univ-lyon1.fr> <1992Jul26.165838.1278@news.eng.convex.com> <92033@bu.edu>
- Sender: news@mintaka.lcs.mit.edu
- Organization: /etc/organization
- Lines: 17
-
-
- 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)&
-
- --
- - Charles Hannum, mycroft@ai.mit.edu
- White atheist male (WAM) pride!
-