I want to capture the output from a program but still have it print to
r = 
IO.popen(“mycmd”) do |pipe|
while (line = pipe.gets)
r << line
but the output will only come after the command has finished running.
work here since the command runs for very long and the user will want
Is there a pure-Ruby way (that works on Windows!) for capturing the
a command without “disturbing” its normal output to STDOUT?
Sorry if this is very basic but I have a windows background…