Now that nearly everyone has a Web server installed on their PCs, it seemed appropriate that a chapter on cgi scripts should be included as part of this shell programming book.
In this chapter we will cover:
basic cgi scripts;
using Server Side Includes;
the get method;
the post method;
creating an interactive script; and
a cgi script that automatically reloads a Web page.
You do not need to be on a network to run a Web server; you can run it from your local host. However, here I will assume you have a Web server installed (apache, Cern etc.) and a browser to display the Web pages (Netscape, Internet Explorer, etc.). In addition, the server has been cgi-enabled. By default this is disabled; just comment out the required lines. ...