aescm.cgi

CGI features

  1. The tool can be used as an interpreter in the sharp-bang line in a CGI script or as an action handler CGI script.

  2. The sharp-bang line of the document will be skipped.

  3. An HTML content header will be added if the document begins with character <.

  4. The query string will be bound to variable escm_query_string.

Installation

Use configure script to deliver the settings to the tool. You cannot change the backend either by environment variables or by optional arguments.

./configure --backend="scsh -s /dev/stdin"

Move to the src directory and compile the tool.

mv src
make aescm.cgi

Copy the program to a CGI script directory.

cp aescm.cgi ~/public_html/cgi-bin/

Handler CGI script

To make aescm process all documents with suffix escm under a certain directory, add these lines to .htaccess:

AddHandler escm-handler .escm
Action escm-handler /~login/cgi-bin/aescm.cgi