Exec method adding extra quote at the end of variable

Anyone know how I can get around this problem? I am getting an extra
quote at the end of a variable called with the kernel::exec method.

I think the problem is because my variable looks like this:
[email protected]#{file}’ , where the ‘@’ is a necessary literal in the exec

I have pasted the script and result here: http://pastebin.com/AktDLpNx

Any ideas how to get around this?


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs