Quoth Thien-Thi Nguyen <[EMAIL PROTECTED]>:
> () Sebastian Tennant <[EMAIL PROTECTED]>
> () 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 :-)




Reply via email to