[plt-scheme] web-server servlet components not reloading

From: Daniel Silva (dansilva at lynx.dac.neu.edu)
Date: Mon Aug 12 14:08:57 EDT 2002

> 
> Make sure your MzScheme CGI scripts (in the shell script format I
> showed) have execute permission.
> 

I did that... one.cgi works, two.cgi generates a server 500 error, and
three.cgi just kind of hangs there...

here is a shell log:


[cgi-bin]$ cat test.c
int main() { printf("test\n"); return 0; }

[cgi-bin]$ ./test
test

[cgi-bin]$ cat test.scm
(printf "test~n")

[cgi-bin]$ plt/bin/mzscheme -r test.scm
test

[cgi-bin]$ cat one.cgi
#! /bin/sh
echo Content-Type: text/plain
echo
exec ./test

[cgi-bin]$ cat two.cgi
#! /bin/sh
string=? ; exec plt/bin/mzscheme -r $0
(printf "Content-Type: text/plain~a~n~a~n" #\return #\return)
(printf "test~n")

[cgi-bin]$ cat three.cgi
#! /bin/sh
echo Content-Type: text/plain
echo
exec plt/bin/mzscheme -r test.scm

[cgi-bin]$ ./one.cgi
Content-Type: text/plain

test

[cgi-bin]$ ./two.cgi
Content-Type: text/plain

test

[cgi-bin]$ ./three.cgi
Content-Type: text/plain

test

[cgi-bin]$ chmod a+rx one.cgi
[cgi-bin]$ chmod a+rx two.cgi
[cgi-bin]$ chmod a+rx three.cgi
[cgi-bin]$ chmod a+rx plt  
[cgi-bin]$ chmod a+rx plt/bin
[cgi-bin]$ chmod a+rx plt/bin/mzscheme




Posted on the users mailing list.