Poor man's remote finger (csh script)
Darrell Long
darrell at sdcsvax.UCSD.EDU
Fri Dec 26 17:27:54 AEST 1986
Did you ever want to know if someone at a remote site were still
alive, whether he had logged in in the last six months? For
folks with ARPAnet connexions that's easy to do with finger(1),
but for those who have not ARPAnet it's not so easy.
I wrote a short csh script that will do a remote finger via e-
mail. This allows you to check on your favorite hacker without
calling him on the phone (to see why he didn't answer your e-
mail). I hope it is helpful.
Example: mail -s darrell finger%beowulf.ucsd.edu at sdcsvax.uucp
DL
Darrell Long
Department of Electrical Engineering and Computer Science, C-014
University of California, San Diego
La Jolla, California 92093
ARPA: Darrell at Beowulf.UCSD.EDU
UUCP: sdcsvax!beowulf!darrell
--
#/bin/csh -f
#
# MFING -- The poor man's remote finger.
#
# This shell script will do a "finger" on the person requested in the
# subject line and return that information to the sender.
#
# Install it as an alias in your /usr/lib/aliases file:
#
# finger:"| /local/bin/mfing"
#
# DDEL
# Tue Oct 14 14:25:54 PDT 1986
# DREL
# Tue Oct 14 15:07:27 PDT 1986
#
set args = (`egrep "From |Subject:"`)
set who
if ($#args >= 9) set who=($args[9-])
/usr/ucb/finger $who | /usr/ucb/mail -s "finger $who" $args[2]
More information about the Comp.sources.unix
mailing list