Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 13. Running a CGI Search Tool > Running SWISH-E from the Command Line

13.3. Running SWISH-E from the Command Line

The way this chapter's web search tool is going to work is this: the user will type in some search terms in a web form and submit that form's contents to a CGI script. The CGI script will then execute the swish-e program, just as if we were running swish-e manually, from the command line. The CGI script will read the results back from swish-e, format those results in a suitable fashion, and display them back to the web user. It sounds complicated, but it all works out just fine.

To understand the part of the CGI script that executes the swish-e command-line query, we should now try running swish-e ourselves, from the command line. Here's an example that shows how such a command would look:


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint