From: Chris Donhofer Date: 2006-09-24T02:05:13+09:00 Subject: Re: catching process output (Kernel#system) thx for the answers guys! but still, i cant get the output into my array. below is the code im using - what am i doing wrong? cheers, chris def do_convert #testcode #convert file puts "STARTING CONVERSION..." op = ["ffmpeg result/output:".upcase, " "] #using ls instead of ffmpeg, so everyone can test this IO.popen("ls") do |l| op.insert(-1, l) end #i also tried "p = IO.popen('ls')" and then #my_array = p.readlines, but with the same result #display output op.each do |line| puts line end end