how to put a program into .plan file
superMan the web dweller
labb-4ac at web-4b.berkeley.edu
Thu Sep 27 01:54:56 AEST 1990
In article <2782 at idunno.Princeton.EDU> subbarao at phoenix.Princeton.EDU (Kartik Su
bbarao) writes:
>
> [ some part deleted ]
>
>The "cool" way to do this is to set up your .plan as a named pipe with
>/etc/mknod.
>
>% /etc/mknod ~/.plan p (Assuming that any existing .plan is not there)
>
>Then you simply write a C program that checks the status of the file,
>to see whether someone (the fingerer) has opened it. Then simply
>write your message to the named pipe. You can do many fancy things with this.
>I know a user at our site who did something like this with his .plan, and every
>time you fingered him, it would say how many people had fingered him today,
>the weather, and even your name. And sometimes it would also finger the person
>who fingered in the first place.
>
> -Kartik
Pardon my ignorance, but how can you write a C program which checks the
status of the file to see whether someone has opened it? Exactly what
system call or library function do you use?
Please send reply to Internet address achoi at cory.berkeley.edu.
Thank you so much for your reply.
Name: Andrew Choi
Internet Address: achoi at cory.berkeley.edu
#include <std/disclaimer.h>
More information about the Comp.unix.programmer
mailing list