This is the mail archive of the guile@sources.redhat.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: cgi with guile


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")
(newline)
(newline)

first.

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
> stage. 
> 
> sorry for this silly question, my problem may be apache, but ...
> 
> thanks
> o
> email: olivier.buechel@unifr.ch
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]