home *** CD-ROM | disk | FTP | other *** search
/ The HTML Web Publisher's Construction Kit / HTMLWPCK.ISO / unix / cgi / 15_2.sh < prev    next >
Encoding:
Linux/UNIX/POSIX Shell Script  |  1995-07-11  |  512 b   |  45 lines

  1. #! /bin/sh
  2.  
  3. #This script comes standard with NCSA's HTTPD
  4.  
  5. FINGER=/usr/ucb/finger
  6.  
  7. echo Content-type: text/html
  8.  
  9. echo
  10.  
  11. if [ -x $FINGER ]; then
  12.  
  13.        if [ $# = 0 ]; then
  14.  
  15.                cat << EOM
  16.  
  17. <TITLE>Finger Gateway</TITLE>
  18.  
  19. <H1>Finger Gateway</H1>
  20.  
  21. <ISINDEX>
  22.  
  23. This is a gateway to "finger". Type a user@host combination in your 
  24.  
  25. browser's search dialog.<P>
  26.  
  27. EOM
  28.  
  29.        else
  30.  
  31.                echo \<PRE\>
  32.  
  33.                $FINGER "$*"
  34.  
  35.        fi
  36.  
  37. else
  38.  
  39.        echo Cannot find finger on this system.
  40.  
  41. fi
  42.  
  43.  
  44.  
  45.