From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sebastian Tennant Newsgroups: gmane.lisp.guile.user Subject: Re: CGI scripting with Guile Date: Tue, 18 Mar 2008 22:19:27 +0200 Message-ID: <87k5jz4wfk.fsf@moley.moleskin.org> References: <87tzj7ljuk.fsf@moley.moleskin.org> <873aqrlifk.fsf@ambire.localdomain> <87lk4iddzf.fsf@moley.moleskin.org> <87myoy3j2t.fsf@ambire.localdomain> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1205871601 27110 80.91.229.12 (18 Mar 2008 20:20:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 18 Mar 2008 20:20:01 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Mar 18 21:20:30 2008 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JbiIP-0005J6-3c for guile-user@m.gmane.org; Tue, 18 Mar 2008 21:20:29 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JbiHp-0002Oe-2m for guile-user@m.gmane.org; Tue, 18 Mar 2008 16:19:53 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JbiHj-0002KV-CJ for guile-user@gnu.org; Tue, 18 Mar 2008 16:19:47 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JbiHh-0002HH-Qx for guile-user@gnu.org; Tue, 18 Mar 2008 16:19:47 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JbiHh-0002HA-Nn for guile-user@gnu.org; Tue, 18 Mar 2008 16:19:45 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JbiHh-0002RJ-DH for guile-user@gnu.org; Tue, 18 Mar 2008 16:19:45 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JbiHY-0003xa-PO for guile-user@gnu.org; Tue, 18 Mar 2008 20:19:36 +0000 Original-Received: from 85.105.17.65 ([85.105.17.65]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 18 Mar 2008 20:19:36 +0000 Original-Received: from sebyte by 85.105.17.65 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 18 Mar 2008 20:19:36 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 41 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 85.105.17.65 User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1 (gnu/linux) Cancel-Lock: sha1:KXr+X4HMOqfo/hs8zB2pGZNXhwc= X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:6475 Archived-At: Quoth Thien-Thi Nguyen : > () Sebastian Tennant > () Sun, 16 Mar 2008 14:56:20 +0200 > > This is incredibly useful. Thank you for pointing it out. > > You're welcome. If you find any bugs in it, i'm all ears... I'll do my best... :-) > Just out of curiostiy, why the '.in' file extension? > Is it to do with make? > > It's customary for autoconf-substituted files (see configure.in) > to use the .in extension. Running the configure script produces > id.cgi from id.cgi.in, with the @var@ sequences expanded. Noted. Thanks for the explanation. > > #!/bin/sh > > exec @GUILE@ -s $0 "$@" # -*- scheme -*- > > !# > > Also, why the shell? > > This preamble can accomodate Guile installed in different places. > For example, in my case, @GUILE@ becomes /home/ttn/local/bin/guile, > but for you it would most likely be different. You should be able > to safely replace it w/ the preamble used in your test script. Hmm, OK. Again, just out of interest, why doesn't a simple #!@GUILE@ -s !# suffice? Thanks again thi. Sebastian