chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] Spiffy cgi usage


From: Matthew Welland
Subject: [Chicken-users] Spiffy cgi usage
Date: Wed, 26 Mar 2008 22:31:20 -0700
User-agent: KMail/1.9.6 (enterprise 0.20070907.709405)

How to set up spiffy to directly execute cgi scripts. I.e. NOT by applying 
the interperter to the script:

Spiffy seems to want this:

/bin/perl script.pl

vs 

script.pl with #!/bin/perl in the first line.

;; the cgi-handler part is *not* obvious from the documentation
;; I recomend putting a line like the following in one of the examples
(use spiffy cgi-handler)
 
(spiffy-debug-mode #t)
(spiffy-file-ext-handlers 
 `(("cgi" . ,(cgi-handler* "/nfs/blah/stmlrun.cgi"))))

;; the "script" I want to run is actually a compiled binary
;; I couldn't figure out how to run it directly so I wrote a wrapper :-(
;; from looking at the code it isn't obvious to me if it is even possible

(spiffy-root-path "mcos")
(start-server location: (get-host-name)
                init: noop)
-=-




reply via email to

[Prev in Thread] Current Thread [Next in Thread]