ruby on rails - RubyOnRails: interface to shell script -


I want to create a button inside my GUI that triggers a shell script How can I do this?

Thank you!

you have to enter

def action_name output = `/ path / To / your / shell / script` end

A gear can be said that in one action the bracket operator `` calls a system and returns the standard output of your shell script .

UPD : This is the easiest way. If you have a long running shell script, you should consider using something like


Comments