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
.
To compile and install the CGI tool,
run configure
scirpt with
--with-cgibin
option
and specify the CGI directory.
You'd better specify the scheme interpreter's full path,
for environment variable PATH may be different.
For example:
./configure --with-cgibin=$HOME/public_html/cgi-bin --with-scheme="$HOME/bin/gosh -b"
Then compile and install the program.
make cgi
make cgi-install
To make aescm process all documents with suffix escm under a certain directory, make and/or edit .htaccess.
Here is a sample:
AddHandler escm-handler .escm Action escm-handler /~login/cgi-bin/aescm.cgi
In this case,
aescm.cgi was
installed in directory ~/public_html/cgi-bin
.
Consult http://httpd.apache.org/docs/handler.html for more information on configurations.