G
George Moschovitis
Hello everyone,
I have a small question:
I would like to use backtick (`) to execute a command line
program:
Is there a method in the standard ruby distribution that
allows me to escape a string for the command line shell?
for examle escape strings like this:
`my_programm --password=qw;2332;3`
should become
`my_programm --password=qw\;2332\;3`
Btw I need this method to be compatible with Windows too. I can
implement my own method of course, but I was wondering if there
is something available in ste standard libraries.
thanks in advance,
George.
I have a small question:
I would like to use backtick (`) to execute a command line
program:
Is there a method in the standard ruby distribution that
allows me to escape a string for the command line shell?
for examle escape strings like this:
`my_programm --password=qw;2332;3`
should become
`my_programm --password=qw\;2332\;3`
Btw I need this method to be compatible with Windows too. I can
implement my own method of course, but I was wondering if there
is something available in ste standard libraries.
thanks in advance,
George.