home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / question / 9274 < prev    next >
Encoding:
Internet Message Format  |  1992-07-21  |  2.4 KB

  1. Xref: sparky comp.unix.questions:9274 comp.unix.programmer:3841 comp.unix.wizards:3277
  2. Newsgroups: comp.unix.questions,comp.unix.programmer,comp.unix.wizards
  3. Path: sparky!uunet!wupost!sdd.hp.com!mips!darwin.sura.net!jvnc.net!princeton!burn.Princeton.EDU!spencer
  4. From: spencer@burn.Princeton.EDU (S. Spencer Sun)
  5. Subject: Re: Making ``.plan'' EXECUTE a Program ???
  6. Message-ID: <1992Jul22.062254.21368@Princeton.EDU>
  7. Sender: news@Princeton.EDU (USENET News System)
  8. Nntp-Posting-Host: burn.princeton.edu
  9. Reply-To: spencer@phoenix.princeton.edu (S. Spencer Sun)
  10. Organization: Live Organ Transplants
  11. References: <1992Jul21.200454.3795@ccu.umanitoba.ca> <bharat.711752774@Xenon.Stanford.EDU>
  12. Date: Wed, 22 Jul 1992 06:22:54 GMT
  13. Lines: 36
  14.  
  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. >>[asks how you get a program to execute in place of .plan]
  19. >>
  20. >>(today I used finger on a userid, it displayed all the info in a pretty
  21. >> standard way nutill it reached the "plan:" line as at this moment this
  22. >> person's plan was displayed in a way that only a program/script could do).
  23.  
  24. I'm curious to see exactly what this display was that "only a
  25. program/script could do".
  26. >
  27. >Make your .plan a named pipe. (See "man mknod"). then have a program
  28. >that writes to it. It will sleep until the finger daemon reads from it,
  29. >whence your prog  will be awakened and the finger daemon will read 
  30. >what your program is writing.
  31.  
  32. Until, of course, the system reboots, in which case your writer process
  33. will die (unless you can persuade your sysadmin to stick it in the
  34. startup processes), or if someone fingers you on another machine that
  35. mounts your home directory (named pipes don't seem to work too well over
  36. NFS if the reader and writer are on different machines).
  37.  
  38. The reason why people are so gung-ho about named pipes for their .plan
  39. files continues to elude me...
  40.  
  41. Useless blathering: I don't think this belonged in comp.unix.wizards so
  42. I have removed it from the Newsgroups: line.  The question is also
  43. dangerously close to being a FAQ (the FAQ answers the "How do I find out
  44. who is fingering me" which mentions the named pipe hack)
  45.  
  46. ----------- The opinions expressed in this article are solely mine. -----------
  47. <Insert lame attempt at disclaimer humor>
  48. sss/PU'94 Dept of CS (spencer@phoenix.princeton.edu)/JvNCnet (spencer@jvnc.net)
  49. If you're not part of the solution, you're part of the precipitate.  [fortune]
  50.  
  51.