2010-10-15 4 views

Répondre

2

J'ai fini avec la solution dans cet extrait

STDOUT.sync = true 
IO.popen(command+" 2>&1") do |pipe| 
    pipe.sync = true 
    while str = pipe.gets 
    puts "-> "+str 
    end 
end