Finger log

Finger log

Post by fal.. » Mon, 25 Sep 1995 04:00:00



I saw this in the faq but didn't quite understand the*details. Is
there a way to log finger hits in my .plan or .profile?

Thanks

-----------------------------------------------------------------------


--------------------------------------------------------------------------  

 
 
 

Finger log

Post by Aaron Mac » Wed, 27 Sep 1995 04:00:00


: I saw this in the faq but didn't quite understand the*details. Is
: there a way to log finger hits in my .plan or .profile?
:
i attached the file, or you can d/l it from
ftp.clark.net/pub/amacks/pub/fingerlog.sh
Aaron
#! /bin/sh -e
# LOGFINGER ver 3.0 (1/6/1994)
#  UNIX Sh(ell) Program to Log a Fingerer

#
#   instructions -- save this script in your HOME directory as 'logfinger'
#                   use 'chmod +x logfinger' to make 'logfinger' executable
#                   create a .plan file if you want one
#                 4 start 'logfinger' by typing at the command prompt:
#                     logfinger &
#                   cat 'finger.log' when you are curious
#                   end 'logfinger' by typing at the command prompt:
#                     logfinger
#                   repeat from 4 when you get paranoid again
#                   delete these instructions when you don't need them
#   end of instructions --
#
init() {
  echo 'LOGFINGER ver 3.0 (1/6/1994) by R L Samuell'
  if (test -f $RCFILE) then
    PID=`cat $RCFILE`
    if (ps $PID | grep $PID | grep logfinger) then
      kill -9 $PID
      echo 'STOPPED'
      quit; fi; fi
  echo 'STARTED'
  test -p $PLAN && rm $PLAN
  test -h $HOME/.plan && rm $HOME/.plan
  if (test -f $HOME/.plan) then
    mv $HOME/.plan $HOME/.plan2
  else
    echo 'Planless am I... *sigh*' > $HOME/.plan2; fi
  mknod $PLAN p
  ln -s $PLAN $HOME/.plan
  echo $$ > $RCFILE
  echo 'LOGGING STARTED' `date` >> $LOG; }
#
quit() {
  echo 'LOGGING STOPPED' `date` >> $LOG
  rm -f $RCFILE
  rm -f $HOME/.plan
  rm -f $PLAN
  test -f $HOME/.plan2 && mv $HOME/.plan2 $HOME/.plan
  exit; }
trap quit 2
#
DIR=/tmp
test -w $DIR || DIR=$HOME
HOST=`hostname`
LOG=$HOME/finger.log
PATH=$PATH:/etc:/usr/etc
PLAN=$DIR/.plan.$USER
RCFILE=$HOME/.logfingerrc.$HOST
init
while eval cat $HOME/.plan2 > $PLAN; do
  (netstat | grep finger >> $LOG) || (echo 'LOCAL USER' >> $LOG)
  date >> $LOG
  done
quit
# NOTE -- This script may not work for all environments but it works for
mine!

 
 
 

Finger log

Post by Phil Edwar » Wed, 27 Sep 1995 04:00:00




+ I saw this in the faq but didn't quite understand the*details. Is
+ there a way to log finger hits in my .plan or .profile?

Use "archie" to go find the program called masterplan.  Install it
and you're off and running.

--
#include<std/disclaimer.h>                       The gods do not protect fools.
Phil Edwards                                                Fools are protected


 
 
 

1. Finger Log in C Shell

Can someone help me write this script? I am really a beginner in this
field. I wanna write a script which will keep track of whoever is
fingering me. Do I have to write it in .plan file? What do I have to do
for this? what environment variables can I use to do this? Where can I get
a list of the environment variables? sorry, I am really a novice in this
field...i am trying to learn.

2. PINE for SCO Unix 3.2R4.2

3. mknod and finger log

4. Problem with Windows NT print queues

5. Finger log file

6. RedHat5 installation with only floppy drives

7. finger log file

8. CD writer software

9. finger log help

10. finger log?

11. Finger log file

12. finger log file