Report abuse


			
IO.popen('tail -n0 test.out') { |f|
  while line = f.gets
    throw :quit if line.chomp == 'quit'
    @data << line
    puts line.inspect
  end
}

catch :quit do
  puts "quitting..."
end

puts "done!"