O'Reilly logo

Linux and Unix Shell Programming by David Tansley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

29.4. cgi and HTM script

When a browser makes a request to load a page, the Web server looks at the incoming URL. If there is cgi-bin as part of the URL path, the server opens a connection, which is usually a pipe to the requested cgi script. All input and output from the cgi script is sent through this pipe. Now, if the cgi script is to display a formatted Web page it must have HTML tags within the script so that a page can be displayed in a recognized format to the Web server, hence knowledge of some HTML is necessary. The Web server will send this document page to the browser to be displayed for the calling user. Table 29.1 shows some useful HTML tags.

29.4.1. Basic cgi script

All scripts should reside in the cgi-bin directory of your Web ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required