Forum: Ruby exec method adding extra quote at the end of variable

609f2c73c880752ed65ce9d42d26121d?d=identicon&s=25 Jon Auman (jonauman)
on 2014-06-25 11:31
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:
'file=@#{file}' , where the '@' is a necessary literal in the exec
command.

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

Any ideas how to get around this?

Thanks,
Jon
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.