Ruby and perl


#1

Hello Community,

is it possible to include perl scripts into a ruby view (.rhtml)?
If yes, the structure has to be /public --> /cgi-bin like in a web
application with cgi scripts?

Best regards,
Mathias


#2

Mathias wrote:

Hello Community,

is it possible to include perl scripts into a ruby view (.rhtml)?
If yes, the structure has to be /public --> /cgi-bin like in a web
application with cgi scripts?

Best regards,
Mathias

nope


#3

Can cgi output not be included using SSIs?


#4

Steve Pierce wrote:

Can cgi output not be included using SSIs?

I supposed so. I can invoke a perl script in the /cgi-bin as a link, but
an include doesn’t work. Can somebody tell me why?

Mathias


#5

On Jan 26, 2006, at 1:19 PM, Mathias wrote:

Steve Pierce wrote:

Can cgi output not be included using SSIs?

I supposed so. I can invoke a perl script in the /cgi-bin as a
link, but
an include doesn’t work. Can somebody tell me why?

Mathias

What kind of include are you talking about? Is this in a rails .rhtml
view or are you talking ssi? In normal ssi you have to use the exec
command instead of include to get cgi scripts to execute. But Rails
doesn’t support ssi in the views does it? What you might need is to
use open-uri to grab the cgi output on localhost from a http request.

Cheers-
-Ezra Z.
Yakima Herald-Republic
WebMaster
http://yakimaherald.com
509-577-7732
removed_email_address@domain.invalid


#6

On 27/01/2006, at 10:19 AM, Mathias wrote:

Steve Pierce wrote:

Can cgi output not be included using SSIs?

I supposed so. I can invoke a perl script in the /cgi-bin as a
link, but
an include doesn’t work. Can somebody tell me why?

Because by default Apache won’t process SSI for script output. You’ll
have to add an OutputFilter for dispatch.fcgi to go through mod_ssi.
If you’re not using Apache you’re out of luck. However:

<%= /path/to/cgi-bin/script.pl %>

will work.