home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / wizards / 3296 < prev    next >
Encoding:
Text File  |  1992-07-24  |  2.3 KB  |  62 lines

  1. Newsgroups: comp.unix.wizards
  2. Path: sparky!uunet!caen!sol.ctr.columbia.edu!csa!kibirev
  3. From: kibirev@csa.bu.edu (oleg kibirev)
  4. Subject: Re: Making ``.plan'' EXECUTE a Program ???
  5. Organization: Computer Science Department, Boston University, Boston, MA, USA
  6. References: <1992Jul21.200454.3795@ccu.umanitoba.ca> <bharat.711752774@Xenon.Stanford.EDU> <1992Jul22.062254.21368@Princeton.EDU>
  7. Message-ID: <1992Jul24.164704.2857@ctr.columbia.edu>
  8. Sender: news@ctr.columbia.edu (The Daily Lose)
  9. Date: Fri, 24 Jul 1992 16:47:04 GMT
  10. X-Posted-From: csa.bu.edu
  11. X-Posted-Through: sol.ctr.columbia.edu
  12. Lines: 48
  13.  
  14. In article <1992Jul22.062254.21368@Princeton.EDU> spencer@phoenix.princeton.edu (S. Spencer Sun) writes:
  15. >In article <bharat.711752774@Xenon.Stanford.EDU> bharat@Xenon.Stanford.EDU (Bharat Shyam) writes:
  16. >>umnoor@ccu.umanitoba.ca (Nasir Ahmed Noor) writes:
  17.  
  18. >I'm curious to see exactly what this display was that "only a
  19. >program/script could do".
  20. >>
  21. May be, something like:
  22.  
  23. [some.host.EDU]
  24. Hi, S. Spencer Sun,
  25.  
  26. I have recieved your mail about "Subject" at 4.00am 07/20/92 and
  27. will read it as soon as I log in.
  28.  
  29. I have seen such finger on one host. It fingures you back, tries to
  30. figure out your name and executes a program.
  31.  
  32. >>Make your .plan a named pipe. (See "man mknod"). then have a program
  33. >>that writes to it. It will sleep until the finger daemon reads from it,
  34. >>whence your prog  will be awakened and the finger daemon will read 
  35. >>what your program is writing.
  36.  
  37. Unf, this can cause mystereous crashes with NFS that doesn't get named pipes
  38. right. So, if you are fingured on a host that imports your home dir, Mr. Nobody
  39. gets hang fingerd. 
  40.  
  41. Probably the better solution is to set setgid bit on .plan and have your daemon
  42. flock() it. The program can than monitor last read time of .project and, when it 
  43. changes, modify and release .plan. Locks don't work accross NFS either, but 
  44. at least nothing gets hang.
  45.  
  46. >
  47. >Until, of course, the system reboots, in which case your writer process
  48. >will die (unless you can persuade your sysadmin to stick it in the
  49. >
  50.  
  51. Would be nice if user could have .startup file in $HOME that gets executed
  52. after each reboot...
  53.  
  54. >The reason why people are so gung-ho about named pipes for their .plan
  55. >files continues to elude me...
  56. >
  57. My favourite advice is making your .rhosts a named pipe :)
  58.  
  59. Oleg Kibirev
  60.  
  61.  
  62.