Escaping URL &'s when launching browser from Ruby script -


Using Ruby 1.9.2 I am writing a Windows script that intends to launch the browser at that URL The parameters in which the parameters are kept. I have tried various ways of launching a browser process: '# # url}' start the system ("# # url} get started") ...

My URL has several parameters and So in it; Of The problem is that & amp; It is being explained by the shell and I do not know how to avoid them like this that they are passing the browser correctly.

Any thoughts? Thanks!

You can use:

Executes command The command is one of the following forms in a subsection.
[...]
CMDName, arg1, ... : Command name and one or more arguments (no one is open)

This will completely leave the shell and bypass the problem of running away. Try it:

  system ('start', url)   

I'm not sure how to start with start Works if it is a different executable, then it should work.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -