From: Hal Fulton Date: 2004-04-28T13:32:58+09:00 Subject: Re: popen issues nobu.nokada@softhome.net wrote: > Hi, > > At Wed, 28 Apr 2004 06:06:30 +0900, > Hal Fulton wrote in [ruby-talk:98572]: > >>Here's what I was thinking (simplified): >> >> io = IO.popen("/bin/bash","r+") do |f| >> f.puts "ls" >> puts f.readlines > > > IO#readlines reads all of the lines, i.e., blocks until the all > child processes exit or close the stdout. You probably can use > sysread instead, and IO#readpartial proposed by akr (see > [ruby-talk:96220]) would help you if it is implemented. Of course, this makes sense. Thank you. I don't remember #readpartial but I will read about it. Thanks, Hal