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. -- Nobu Nakada