stream = "http://sc.slayradio.org:8000" tmpdir = "~/tmp/" command = "streamripper "+stream+" -d "+tmpdir streamripper = IO.popen(command) sleep 10 10.times do puts streamripper.read_nonblock(10) puts "------------" sleep 2 end streamripper.close