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 -- Posted via http://www.ruby-forum.com/.
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, > Mathiasnope -- Posted via http://www.ruby-forum.com/.
Can cgi output not be included using SSIs? On Jan 26, 2006, at 2:26 PM, Mikkel Bruun wrote:> 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 > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails
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 -- Posted via http://www.ruby-forum.com/.
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? > > > > MathiasWhat 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 Zygmuntowicz Yakima Herald-Republic WebMaster http://yakimaherald.com 509-577-7732 ezra@yakima-herald.com
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. -- Phillip Hutchings phillip.hutchings@sitharus.com http://www.sitharus.com/ -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2234 bytes Desc: not available Url : http://wrath.rubyonrails.org/pipermail/rails/attachments/20060127/1d6889a4/smime.bin