how to put a program into .plan file
Gregg Townsend
gmt at cs.arizona.edu
Tue Sep 25 10:47:25 AEST 1990
In article <12175 at chaph.usc.edu> szeto at aludra.usc.edu (Johnny Szeto) writes:
> Is there any way to put a shell script or a c-prog. into .plan
> so that when someone fingers me it will be activated?
I did this by making my .plan file a named pipe and driving it from a shell
script. The script repeatedly executed a simple program and directed its
output to the .plan file. Whenever finger (or cat or anything else) opened
the file, the program would execute once and print the time and temperature.
(The temperature was just an educated guess, but it fooled several people!)
Gregg Townsend / Computer Science Dept / Univ of Arizona / Tucson, AZ 85721
+1 602 621 4325 gmt at cs.arizona.edu 110 57 16 W / 32 13 45 N / +758m
More information about the Comp.unix.programmer
mailing list