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