Passing a CGI argument to eruby in the command-line?

Is there a way I can pass a CGI argument to an .rhtml file if I’m
calling eruby from the command-line? Right now I’m doing this:

eruby /www/some-page.rhtml

… which works fine, but I want to do this:

eruby /www/some-page.rhtml this=that

(the same way I pass args into a CGI script)

and that doesn’t work. It keeps wanting to get its arguments from
standard input.

Any ideas would be appreciated.

Francis

echo “this=that” | eruby /www/some-page.rhtml
?

···

On Wed, Feb 12, 2003 at 07:20:52AM +0900, Francis Hwang wrote:

eruby /www/some-page.rhtml this=that
(the same way I pass args into a CGI script)


---- WBR, Michael Shigorin mike@altlinux.ru
------ Linux.Kiev http://www.linux.kiev.ua/