[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: CGI scripting with Guile
From: |
Sebastian Tennant |
Subject: |
Re: CGI scripting with Guile |
Date: |
Sun, 16 Mar 2008 17:11:52 +0200 |
User-agent: |
Gnus/5.110007 (No Gnus v0.7) Emacs/22.1 (gnu/linux) |
Quoth Thien-Thi Nguyen <address@hidden>:
> () Sebastian Tennant <address@hidden>
> () Sun, 16 Mar 2008 14:51:19 +0200
>
> guile> (www:get "http://www.../hw.scm")
> ""
> guile> (www:http-head-get "http://www.../hw.scm")
> #("HTTP/1.0" "200" "OK" ((server . "lighttpd/1.4.18") (date . "Sun, 16
> Mar 2008 12:43:32 GMT") (content-length . "0") (connection . "close"))
> "")
>
> It 'works' without LOAD and INIT.
>
> Perhaps the module (www cgi) is not being loaded.
Exaclty right.
> What happens when you insert the form:
> (simple-format (open-output-file "/tmp/alive") "ALIVE! ~S\n" cgi:init)
Not necessary. It occurred to me to chack lighty's error log:
ERROR: no code for module (www cgi)
I've fixed the problem using the meta switch:
#!/usr/bin/guile \
-L /usr/local/share/guile/site -s
!#
That's one cool switch :-)
Re: CGI scripting with Guile, Sebastian Tennant, 2008/03/15