NetXpress Server Copyright (c) 1995 Merlin Systems Inc. Utility: CGI Search Purpose: Searches through files for keywords and returns URLs to those files. Syntax: search [-B] [-D] [-SUB] [-TITLE] [-?] [ ..] Where: [-B] is your NetXpress Server's web base directory. [-D] is the starting directory relative to the base directory. If the search is to start at the base directory, then you need not include this parameter. [-SUB] includes subdirectories in the search. [-TITLE] will display the Title's of the documents instead of their location. [-?] returns help [] if the allowable file extension to search through. You may have up to 32 different file extensions, but they must be the last parameters. If you wish to search through all files, leave this parameter blank. Operation: 1. Add an 'exec' statement to you NETSRV.WWW configuration file. eg. exec search.htm \netsrv\search0.bat This notifies the NetXpress Server that all requests for 'search.htm' are really to be sent to the NXCGI Server so that it can execute '\netsrv\search0.bat'. 2. Make sure that the both the NetXpress Server web server and the CGI server is in operation. 3. Point to the search form 'srchform.htm' from another document so that the user may perform the search. Example Search Form: Search Form
Search for?

NOTE: The name of the TEXT form does not matter to the search.exe software. The search.exe software will handle either a GET or POST method. Example SEARCH0.BAT File: @echo off type \netsrv\srch_hdr.htm \netsrv\search.exe -b\netsrv\www -s -t htm txt type \netsrv\srch_fot.htm NOTE: The srch_hdr.htm and the srch_fot.htm files are only used for esthetics. Example SRCH_HDR.HTM File: Content-Type: text/html Search Results

Search Results


    NOTE: Please note the first line is a HTTP header. It must always be present! Example: SRCH_FOT.HTM File:

© 1995 Merlin Systems Inc. ============================================================================== Merlin Systems Inc. http://www.merlinsys.com