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

Chapter 29. cgi scripts

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. ...

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