Hallo, I am attemptng to write cgi scripts and looking at the following paragraph in the Pillow documentation:
"It is generally relatively easy to support scripts with the same functionality in most LP/CLP systems (see [13] for an example developed for the CIAO system and adapted to SICStus)."
I haven't been able to find the example referred to despite looking all over your home site. Can you help?
Kindest regards
Mike Rosner
p.s. The example in question concerns
"Let's assume that lpshell is a version of the LP/CLP system (for example, a saved state), which first loads the file given to it as the first argument (but excluding the first line and routing all loading messages away from the standard output) and then starts execution at main/1 (the argument provides the list of command line options). Then, for example, in a Unix system, the following program can be run directly as a script without any need for compilation:" =================================================================== Michael Rosner Internet: mros(a)cs.um.edu.mt Dept. Computer Science and AI Telephone: +356 32 90 25 04 University of Malta Fax: +356 32 05 39 Msida, MALTA
You can find the adaptation of the prolog-shell idea for SICStus in:
~ftp/pub/software/prolog_shell0.3.tar.gz
The code is a little old (i.e., it may need some massaging for newer version of SICStus -- we have not tried it for a while). You can also use the shell that comes with the CIAO Prolog system.