From: "Brian Schröder" Date: 2005-11-08T01:42:06+09:00 Subject: Re: catching a system call output On 07/11/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 > > > Try output = `latex -interaction=nonstopmode temp.tex` (note that the symbols above are backticks, not quotation marks) or dive into popen. cheers, Brian -- http://ruby.brian-schroeder.de/ Stringed instrument chords: http://chordlist.brian-schroeder.de/