Subject: [SWIPL] really need help! problem about CGI executable

From: Cecilia Wong <[email-masked]>
Date: Sat, 30 Dec 2000 19:37:46 +0800

Hi, 

I am trying to use CGI (perl) to call my SWI-Prolog program. I followed something found 
in this mailing list like this:

#! /bin/sh
exec /usr/local/bin/pl -f none -g
"load files (['http://localhost/myprologfile.pl'], [silent (true)])" -t main -- $*

(suppose "main" a program in the "myprologfile.pl") 

 but it doesn't work! The error message is:

Bareword found where operator expected at test.pl line 2, near "/bin/pl"
	(Missing operator before pl?)
Scalar found where operator expected at test.pl line 3, near "-- $*"
	(Missing operator before  $*?)
syntax error at test.pl line 2, near "/usr/local"
Execution of test.pl aborted due to compilation errors.

Can anyone help? Thanks in advance!

Cecilia