View result only visible after the each loop has finished

Hi,

My question:

I like to see immediate the results and not after the loop.
During the loop, you can’t see any result!

Is it possible to follow the results during the each loop?

<%
$xfiles = doSelect(“host=.*”)
$xfiles.each {|xfile|
doc = Document.new File.new("/home/luc/Ruby/xml/#{xfile}") %>
<%= “test=#{xfile}” %>

<%
doc.elements.each("//ACL") { |element|
if element.text() =~ /access-list/ %>
<%= “CPE=#{xfile}” %>

<%= “=>FOUND: #{element.text()}”%>

<% end

Thanks!

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs