home *** CD-ROM | disk | FTP | other *** search
/ SGI Hot Mix 12 / Silicon_Graphics_Developer_Magic_Soft_Dev_812-8101-012.iso / .all / httpd_ncsa / cgi-bin / finger < prev    next >
Encoding:
Text File  |  1995-11-10  |  454 b   |  30 lines

  1. #!/bin/sh
  2.  
  3. FINGER=/usr/ucb/finger
  4.  
  5. echo Content-type: text/html
  6. echo
  7.  
  8. if [ -x $FINGER ]; then
  9.     if [ $# = 0 ]; then
  10.         cat << EOM
  11. <HTML><HEAD><TITLE>Finger Gateway</TITLE></HEAD><BODY>
  12. <H1>Finger Gateway</H1>
  13.  
  14. <ISINDEX>
  15.  
  16. This is a gateway to "finger". Type a user@host combination in your browser's
  17. search dialog.<P>
  18. EOM
  19.     else
  20.         echo \<PRE\>
  21.         $FINGER "$*"
  22.         echo \</PRE\>
  23.     fi
  24. else
  25.     echo Cannot find finger on this system.
  26. fi
  27. cat << EOM
  28. </BODY></HTML>
  29. EOM
  30.