From: Sean O'Halpin Date: 2005-11-08T01:40:58+09:00 Subject: Re: catching a system call output On 11/7/05, Tool69 wrote: > Hi, > I've a Ruby prog with a system call to latex like this one : > system('latex -interaction=nonstopmode temp.tex') > It works fine, but I wanted to catch the output inside an array (or > variable), but not in my terminal. > How can I do that ? Thanks for your response : > 6TooL9 You can use backticks to capture stdout: text = `latex -interaction=nonstopmode temp.tex` Regards, Sean