home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / programm / 5190 < prev    next >
Encoding:
Text File  |  1992-11-07  |  2.0 KB  |  48 lines

  1. Newsgroups: comp.unix.programmer
  2. Path: sparky!uunet!gatech!paladin.american.edu!news.univie.ac.at!hp4at!mcsun!sunic!ugle.unit.no!sigyn.idt.unit.no!bjornmu
  3. From: bjornmu@idt.unit.no (Bj|rn P. Munch)
  4. Subject: Re: How to Detect being fingered on NFS?
  5. Message-ID: <1992Nov6.155135.28007@ugle.unit.no>
  6. Sender: news@ugle.unit.no (NetNews Administrator)
  7. Organization: Div. of CS & Telematics, Norwegian Institute of Technology
  8. References:  <1dc747INNdcu@agate.berkeley.edu>
  9. Date: Fri, 6 Nov 92 15:51:35 GMT
  10. Lines: 36
  11.  
  12. In article <1dc747INNdcu@agate.berkeley.edu>, achoi@soda.berkeley.edu (Andrew Choi) writes:
  13. |> OK, this is not yet another "used a named pipe for your .plan"
  14. |> article, so, please don't jump into conclusion immediately.
  15. |> 
  16. |> Here's the problem.  I can be fingered at one of the serveral
  17. |> machines, i.e. "apple", "orange", "grape" ... etc. for the sake
  18. |> of argument.  Note that everything under my home directory is
  19. |> NFS-mounted (this includes my .plan).
  20. |> 
  21. |> If I have a process running on "apple" writing to my named pipe,
  22. |> it will detect if someone fingers me on "apple".  However, if
  23. |> someone fingers "orange", it will just hang forever because
  24. |> NFS does not really recognize named pipe and so the write from
  25. |> process at "apple" does not respond to a read from "orange".
  26. |> 
  27. |> There are several solutions to this problem:
  28.  
  29. The solution I use:
  30.  
  31. My .plan is a softlink to a file under /tmp.  This file will exist on
  32. "my" machine as the famous named pipe, but not on others, since /tmp
  33. is local to each machine.
  34.  
  35. In case people finger me at another machine, they will see "No Plan.",
  36. but my .project tells them to try another place...
  37.  
  38. Make sure your file under /tmp is not deleted by periodic cleanups, or
  39. try some other place guaranteed to be "local".
  40.  
  41. Good luck!
  42.  
  43. ---
  44. Bj|rn P. Munch               | Dept. of Comp. Science & Telematics,
  45. Bjoern.P.Munch@idt.unit.no   | Norwegian Institute of Technology (NTH),
  46. PhD Student                  | N-7034 Trondheim, Norway
  47. Univeristy of Trondheim      | Fingerable addr:  bjornmu@multe.idt.unit.no
  48.