home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / unix / volume22 / auth-utils / part01 / servers / out.finger < prev    next >
Text File  |  1990-04-29  |  555b  |  23 lines

  1. #!/bin/sh
  2. # out.finger version 1.0, 4/20/90.
  3. # Placed into the public domain by Daniel J. Bernstein.
  4. # Requires u@h2h, u@h2u, out.fingernet, out.fingerlocal.
  5. # You may want to change this script to reflect your access controls.
  6. havenet=n
  7. haveloc=n
  8. for i
  9. do
  10.   export i
  11.   case "$i" in
  12.   *@*) out.fingernet "`printenv i | u@h2h`" "`printenv i | u@h2u`"
  13.        havenet=y;;
  14.   *) haveloc=y;;
  15.   esac
  16. done
  17. case "$haveloc" in
  18. n) case "$havenet" in
  19.    n) out.fingerlocal;;
  20.    esac;;
  21. y) out.fingerlocal `echo "$@" | tr ' ' '\012' | grep -v @ | tr '\012' ' '`;;
  22. esac
  23.