On Tue, 8 Nov 2005, 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 :

  open('|latex -interaction=nonstopmode temp.tex') do |stream|
    #then maybe...
    stream.readlines.each do |line
    end
  end

See also IO.popen, and others [cf Ruby-Talk:163897]

> 6TooL9
> 
> 
        Hugh
>