Newsgroups: alt.2600 Path: gmd.de!xlink.net!howland.reston.ans.net!usc!bloom-beacon.mit.edu!noc.near.net!lynx!random.ccs.northeastern.edu!news From: prat@denali.ccs.northeastern.edu (Tim Russo) Subject: Re: finger trick in old 2600..how? In-Reply-To: mbk@netcom.com's message of Wed, 1 Dec 1993 23: 37:45 GMT Message-ID: Nntp-Posting-Host: denali.ccs.neu.edu Organization: College of CS, Northeastern University References: Date: Thu, 2 Dec 1993 17:36:26 GMT Lines: 40 My site runs GNU finger. When someone executes finger (or finger -l depending on the setup) , finger will run a program called .fingerrc in the home directory of the person being fingered. This is mine: #! /bin/sh COUNTFILE=/home/prat/.fingered expr `cat $COUNTFILE` + 1 > $COUNTFILE echo "My privacy has been violated " `cat $COUNTFILE` "times" echo case $2 in remote) echo "People from $1 sure are nosey!" echo $1 >> /ccs/tmp/.spies local) /usr/ucb/w | grep "finger" | cut -d" " -f1 > /ccs/tmp/.spy echo "Hey `cat /ccs/tmp/.spy`, stop poking around here!" date > /ccs/tmp/.revfing /ccs/bin/finger -l `cat /ccs/tmp/.spy` >> /ccs/tmp/.revfing /usr/ucb/mail -s "FINGERED!" prat < /ccs/tmp/.revfing rm /ccs/tmp/.revfing cat /ccs/tmp/.spy >> /ccs/tmp/.spies rm /ccs/tmp/.spy;; esac cat /home/prat/.plan cat /home/prat/.sig What this will do is that if a local user fingers me it will mail me his/her finger info. If a remote person fingers me it will give me there site address. It also displays how many times I have been fingered. Quick hack, but it works for me. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Tim Russo \/ Internet: prat@ccs.neu.edu /\ - GO USA! - _O MaBell(voice): \/ - WORLD CUP '94 - /- (617) 373-5320 /\ -\o \/ @ PGP Key Available upon Request @ Northeastern University Systems Group /\ * Give Blood..Play Paintball * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~