home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / question / 13021 < prev    next >
Encoding:
Internet Message Format  |  1992-11-07  |  1.8 KB

  1. Path: sparky!uunet!usc!cs.utexas.edu!swrinde!emory!ogicse!das-news.harvard.edu!husc-news.harvard.edu!husc11!haley
  2. From: haley@husc11.harvard.edu (Elizabeth Haley)
  3. Newsgroups: comp.unix.questions
  4. Subject: Re: wanted shell script for .plan
  5. Message-ID: <haley.721043774@husc11>
  6. Date: 6 Nov 92 09:56:14 GMT
  7. Article-I.D.: husc11.haley.721043774
  8. References: <1992Nov4.191356.25875@cis.ohio-state.edu> <Bx7Kzt.65J@cs.dal.ca> <1992Nov5.115748.8694@walter.cray.com> <Bx9Go2.5su@cs.dal.ca>
  9. Lines: 43
  10. Nntp-Posting-Host: husc11.harvard.edu
  11.  
  12. Since Steve is OTR on the subject, and I am working on related things,
  13. I will tell you what I have found out...
  14.  
  15. I set up a named pipe (FIFO), which I called test2:
  16.  
  17.     > mknod test2 p
  18.  
  19. Then I created a file called test:
  20.  
  21.     date > test2
  22.     echo "This is a test" > test2
  23.     exec csh test &
  24.  
  25. Then I did:
  26.  
  27.     > test &
  28.     > date; cat test2
  29.  
  30. Which produced two identical copies of the date, one from this shell
  31. and the other from the pipe, and of course the phrase "This is a
  32. test".
  33.  
  34. One problem, though, I also get an process exit notice from the shell
  35. to tell me that my job had finished...
  36.  
  37. Any way around that?
  38.  
  39. BTW: Don't answer, Steve, I wouldn't want to take up your precious
  40. complaining time...
  41. --
  42. When life seems to be getting you down...
  43. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  44. ======David Charles Todd, tHE mAN wITH tHREE fIRST nAMES======
  45. -------------------- David misses eBeth ----------------------
  46. =-=-=-=-=-=-=-=-=-hacksaw@headcheese.daa.uc.edu=-=-=-=-=-=-=-=
  47.                ...ask it why it is torturing geese
  48.  
  49.  
  50. -- 
  51. =---------------------------------------------------------------------------=
  52. =The author of this letter is a fabulously intelligent person and is very   =
  53. =Silly. She is also remarkably well loved, by the author of this signature. =
  54. =---------------------------haley@husc9.harvard.edu-------------------------=
  55.