home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / programm / 3944 < prev    next >
Encoding:
Internet Message Format  |  1992-07-27  |  956 b 

  1. Path: sparky!uunet!olivea!mintaka.lcs.mit.edu!hal.gnu.ai.mit.edu!mycroft
  2. From: mycroft@hal.gnu.ai.mit.edu (Charles Hannum)
  3. Newsgroups: comp.unix.programmer
  4. Subject: Re: Named pipes
  5. Message-ID: <1992Jul27.221133.27847@mintaka.lcs.mit.edu>
  6. Date: 27 Jul 92 22:11:33 GMT
  7. References: <14u80cINNbd8@grasp1.univ-lyon1.fr> <1992Jul26.165838.1278@news.eng.convex.com> <92033@bu.edu>
  8. Sender: news@mintaka.lcs.mit.edu
  9. Organization: /etc/organization
  10. Lines: 17
  11.  
  12.  
  13. In article <92033@bu.edu> tesco@bumetb.bu.edu (Dances With Babes) writes:
  14. >
  15. > mknod testpipe p
  16. > cat testpipe &
  17. > ls > testpipe
  18. > The "cat" process ends after the ls is sent to the screen.
  19.  
  20. This is the way named pipes have worked since The Dawn of Time.  If you
  21. want to have multiple processes write to the pipe, you need the reader
  22. to reopen it.  In the shell, you could do something like this:
  23.  
  24. (while :;do cat testpipe;done)&
  25.  
  26. -- 
  27. - Charles Hannum, mycroft@ai.mit.edu
  28.   White atheist male (WAM) pride!
  29.