From: Vincent Fourmond Date: 2006-09-24T03:55:53+09:00 Subject: Re: catching process output (Kernel#system) Hello ! This works, at least where popen is available op = [] IO.popen("ls") do |l| op += l.readlines end p op However, if you are on a Win box, my guess is it won't work... Use backticks, then. Just for information, the argument of the block of popen or open is an the IO object representing the file you opened. Cheers Vince