home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 6 / AACD06.ISO / AACD / Online / Apache / cgi-bin / finger < prev    next >
Text File  |  1999-11-11  |  380b  |  27 lines

  1. #!/bin/sh
  2.  
  3. FINGER=/bin/finger
  4.  
  5. echo Content-type: text/html
  6. echo
  7.  
  8. if [ -x $FINGER ]; then
  9.     if [ $# = 0 ]; then
  10.         cat << EOM
  11. <TITLE>Finger Gateway</TITLE>
  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.     fi
  23. else
  24.     echo Cannot find finger on this system.
  25. fi
  26.  
  27.