home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.questions:9274 comp.unix.programmer:3841 comp.unix.wizards:3277
- Newsgroups: comp.unix.questions,comp.unix.programmer,comp.unix.wizards
- Path: sparky!uunet!wupost!sdd.hp.com!mips!darwin.sura.net!jvnc.net!princeton!burn.Princeton.EDU!spencer
- From: spencer@burn.Princeton.EDU (S. Spencer Sun)
- Subject: Re: Making ``.plan'' EXECUTE a Program ???
- Message-ID: <1992Jul22.062254.21368@Princeton.EDU>
- Sender: news@Princeton.EDU (USENET News System)
- Nntp-Posting-Host: burn.princeton.edu
- Reply-To: spencer@phoenix.princeton.edu (S. Spencer Sun)
- Organization: Live Organ Transplants
- References: <1992Jul21.200454.3795@ccu.umanitoba.ca> <bharat.711752774@Xenon.Stanford.EDU>
- Date: Wed, 22 Jul 1992 06:22:54 GMT
- Lines: 36
-
- In article <bharat.711752774@Xenon.Stanford.EDU> bharat@Xenon.Stanford.EDU (Bharat Shyam) writes:
- >umnoor@ccu.umanitoba.ca (Nasir Ahmed Noor) writes:
- >
- >>[asks how you get a program to execute in place of .plan]
- >>
- >>(today I used finger on a userid, it displayed all the info in a pretty
- >> standard way nutill it reached the "plan:" line as at this moment this
- >> person's plan was displayed in a way that only a program/script could do).
-
- I'm curious to see exactly what this display was that "only a
- program/script could do".
- >
- >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.
-
- 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
- startup processes), or if someone fingers you on another machine that
- mounts your home directory (named pipes don't seem to work too well over
- NFS if the reader and writer are on different machines).
-
- The reason why people are so gung-ho about named pipes for their .plan
- files continues to elude me...
-
- Useless blathering: I don't think this belonged in comp.unix.wizards so
- I have removed it from the Newsgroups: line. The question is also
- dangerously close to being a FAQ (the FAQ answers the "How do I find out
- who is fingering me" which mentions the named pipe hack)
-
- ----------- The opinions expressed in this article are solely mine. -----------
- <Insert lame attempt at disclaimer humor>
- sss/PU'94 Dept of CS (spencer@phoenix.princeton.edu)/JvNCnet (spencer@jvnc.net)
- If you're not part of the solution, you're part of the precipitate. [fortune]
-
-