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
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
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
Can cgi output not be included using SSIs?
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
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
509-577-7732
[email protected]
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.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs