byte8bits
8/22/2007 2:11:00 PM
Daniel Lucraft wrote:
> Luiz Macchi 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`
> => ""
You might also do this:
system('gcalctool')