Stream output from IO in ruby Oct 6, 2016 IO.popen('ls -al') do |io| while (line = io.gets) do puts line end end