I don’t know why I can’t do this but I’d like to use backticks in ruby
to import some xml into a program on the command line.
e.g.
java -cp myjar.jar Importer %Q{@xml}
the problem is that the @xml needs to be escaped so that the double
quotes can be placed inside double quotes so that it can be read in
correctly… can this be done?
I don’t know why I can’t do this but I’d like to use backticks in ruby
to import some xml into a program on the command line.
e.g.
java -cp myjar.jar Importer %Q{@xml}
the problem is that the @xml needs to be escaped so that the double
quotes can be placed inside double quotes so that it can be read in
correctly… can this be done?
java -cp myjar.jar Importer \"#{@xml}\"
-r.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.