The tool can be used as an interpreter in the sharp-bang line in a CGI script or as an action handler CGI script.
The sharp-bang line of the document will be skipped.
An HTML content header will be added if the document begins with character <.
The query string will be bound to variable
escm_query_string
.
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/
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