From: "Brian Schröder" Date: 2005-11-08T04:13:31+09:00 Subject: Re: catching a system call output On 07/11/05, Tool69 wrote: > So it works perfectly, but I got one more question : > what can I do if I have a variable inside my system call, like : > system("latex -interaction=nonstopmode #{@myvar}") > I tried with backticks, but it doesn't seems to work : > `latex -interaction=nonstopmode #{@myvar}` > Any solution ? Thanks again ! > > > Works for me: $ ruby -e 'test = 42; p `echo "#{test}"`' "42\n" -- http://ruby.brian-schroeder.de/ Stringed instrument chords: http://chordlist.brian-schroeder.de/