M
Martin Sharon
I want to execute a shell command in ruby, like this:
line = "tokyo paris london"
par = "23 23 11 43"
execute = "./comp #{line} #{par}"
puts execute
but the command executed is
/comp tokyo paris london
23 23 11 43
There is an "enter" there, how can I execute:
/comp tokyo paris london 23 23 11 43
without line changing?
thanks!
line = "tokyo paris london"
par = "23 23 11 43"
execute = "./comp #{line} #{par}"
puts execute
but the command executed is
/comp tokyo paris london
23 23 11 43
There is an "enter" there, how can I execute:
/comp tokyo paris london 23 23 11 43
without line changing?
thanks!