git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] instaweb: support for Ruby's WEBrick server

From
Mike Dalessio <mike@csa.net>
Date
Sep 17, 2007, 13:55 UTC
Message-ID
<618c07250709170655p649a71fdwcfaaa4d5bfcd06ff@mail.gmail.com>
In-Reply-To
<823axd32dz.fsf@mid.bfk.de>
I could generate a second /bin/sh script to run
  "ruby .../webrick.rb"
This would assume that 'ruby' was in the user's $PATH, but that seems
like a reasonable expectation.

The drawback is that we'd be generating TWO scripts, one ruby script to invoke the server, and one shell script to run the ruby script. This seems a little ... circuitous.

Another idea is to hack the $httpd variable to contain a command string like "ruby .../webrick.rb", with the drawback then being a lack of obviousness, since the convention is that the variable contains the same command as the --httpd argument, and is named the same as the <webserver>_conf() functions.

On 9/17/07, Florian Weimer <fweimer@bfk.de> wrote:
Show 12 quoted lines
> * Thomas Adam:
>
> > This is what /usr/bin/env is useful for, but it's not that portable.
>
> Yeah, it's /bin/env exclusively on some systems. 8-(
>
> --
> Florian Weimer                <fweimer@bfk.de>
> BFK edv-consulting GmbH       http://www.bfk.de/
> Kriegsstraße 100              tel: +49-721-96201-1
> D-76133 Karlsruhe             fax: +49-721-96201-99
>
-- 
mike dalessio
mike@csa.net
Previous: Florian Weimer
Message 4 of 4 in “Re: [PATCH] instaweb: support for Ruby's WEBrick server”
  1. Eric WongSep 17, 2007
  2. Thomas AdamSep 17, 2007
  3. Florian WeimerSep 17, 2007
  4. Mike DalessioSep 17, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.