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