This is the mail archive of the
mailing list for the Guile project.
Re: cgi with guile
- To: Olivier Buechel <Olivier dot Buechel at unifr dot ch>
- Subject: Re: cgi with guile
- From: Jonathan Bartlett <johnnyb at wolfram dot com>
- Date: Mon, 17 Jul 2000 04:40:34 -0500 (CDT)
- cc: guile at sourceware dot cygnus dot com
You have to do something about the #!. In most scripting languages # is a
comment, so you don't have to worry about that line, but in guile # means
something. So, the combination #! is now used to open a comment. You
have to say !# on the next line to close it. Also, I believe Apache
requires you to return a content-type. So, you would have to do
(display "Content-Type: text/plain")
On Mon, 17 Jul 2000, Olivier Buechel wrote:
> Right now i`m trying to execute a cgi via apache. The cgi-programm is
> written in guile, but I`m not sure if this code should work:
> #!/usr/local/bin/guile -s
> (write (command-line)) ;;just print the command line out
> Must there be more scheme things to build a cgi-executable?
> I know there is some gci-parsing code around, but this is next
> sorry for this silly question, my problem may be apache, but ...
> email: firstname.lastname@example.org