On Wed, 07 May 2003 10:32:29 +0200, Robert Klemme wrote:

> res = capture {
>         puts "1"

>         popen("ruby output.rb", "r") do |io|
>           print( io.read )
>         end
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

I want to capture all output from ruby, so that 
ruby cannot interfere with that application that
im embedding ruby into. Silencing ruby 100%!

This is not a solution to the problem
the output from
  system("true")
  `true`
will not get captured properly.


>         puts "2"
> }
 

Thanks for trying :-)

--
Simon Strandgaard