home *** CD-ROM | disk | FTP | other *** search
- #!/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
-