Hints and Tips - CGI ProgrammingFor CGI programming, there are a couple of extra variables to be aware of, and a few tips I've picked up along the way.
Although the shell may not seem the obvious choice for CGI programming, it is quick to write and simple to debug. As such, it makes for an ideal prototyping language for CGI scripts, and fine for simple or little-used CGI scripts permanently.
cookie.cgi - which calls fortune.cgi
Steve's Bourne / Bash shell scripting tutorial