home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 6 / AACD06.ISO / AACD / Online / Apache / cgi-bin / archie next >
Text File  |  1999-11-11  |  379b  |  28 lines

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