From: Lee Jarvis Date: 2007-12-19T22:19:06+09:00 Subject: Re: system ( ) call but suppressing =>true jackster the jackle wrote: > The following ruby code works perfectly for what I want but the only > problem is that it returns "=>true" in addition to my data. > > I tried formulating a string and putting backquotes on it but couldn't > get that to work. (example `x + y + z`) > The Kernel#system method returns a boolean datatype, that is -- true if the command was ran sucessfully, false otherwise. Use backticks or %x{} is you want to store the output var = `#{ foo + bar + baz}` # as Marc said var = %x{ #{foo + bar + baz} } # Im pretty sure that works, sorry I can't test it right now. HTH Regards, Lee -- Posted via http://www.ruby-forum.com/.