home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
unix
/
volume22
/
auth-utils
/
part01
/
servers
/
out.finger
< prev
next >
Wrap
Text File
|
1990-04-29
|
555b
|
23 lines
#!/bin/sh
# out.finger version 1.0, 4/20/90.
# Placed into the public domain by Daniel J. Bernstein.
# Requires u@h2h, u@h2u, out.fingernet, out.fingerlocal.
# You may want to change this script to reflect your access controls.
havenet=n
haveloc=n
for i
do
export i
case "$i" in
*@*) out.fingernet "`printenv i | u@h2h`" "`printenv i | u@h2u`"
havenet=y;;
*) haveloc=y;;
esac
done
case "$haveloc" in
n) case "$havenet" in
n) out.fingerlocal;;
esac;;
y) out.fingerlocal `echo "$@" | tr ' ' '\012' | grep -v @ | tr '\012' ' '`;;
esac