I want to call a php scripts from my ruby code. From ruby it needs to pass the arguments to php as command line arguments. But for argument with spaces it is treating it as command.
For example:
result = 'php sample.php "#{name}" "#{location}"'
It is returning
sh: line 1: Blahh Blahh: command not found
sh: line 2: Some more Blahh: command not found
Can anyone tell how to pass ruby string as argument??