gltail icon indicating copy to clipboard operation
gltail copied to clipboard

script.rb can't run from rails controller

Open ypodo opened this issue 13 years ago • 0 comments

Hi, I wrote script to execute remote commands using net/ssh. my script works fine when I run it from command line. But when I try to execute it from rails controller I got an error.

`require': no such file to load -- net/ssh (LoadError)

can anybody help me to understand what I am doing wrong. Thanks

Rails controller @result=system "ruby script.rb"

ypodo avatar Dec 19 '12 18:12 ypodo