Skip to content

script.rb can't run from rails controller #23

@ypodo

Description

@ypodo

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions