Hi all, how to call an application from Ruby inside on Linux ?
I´d like to run ‘KCalc’ for example
thank any help
Hi all, how to call an application from Ruby inside on Linux ?
I´d like to run ‘KCalc’ for example
thank any help
Luiz M. wrote:
Hi all, how to call an application from Ruby inside on Linux ?
I´d like to run ‘KCalc’ for example
thank any help
You can execute a system command by putting it between backticks. On
Gnome, the calculator command is gcalctool and this works for me:
dan: /home/dan$ irb
irb(main):001:0> gcalctool
=> “”
best,
Dan
Daniel L. wrote:
dan: /home/dan$ irb
irb(main):001:0>gcalctool
=> “”
You might also do this:
system(‘gcalctool’)
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