From: Brian Candler Date: 2010-05-07T18:07:58+09:00 Subject: Re: Kernel.open Imre Farkas wrote: > Hi all, > > I am trying to run an external commands with Kernel.open writing and > reading its standard input / output several times. Unfortunately the > script hangs when trying to read with IO.gets. > > Code: > fh = Kernel.open("|hunspell -m", "w+") > > fh.puts "ruby\n" Try here: fh.flush (or: fh.sync = true after opening it) I would normally use IO.popen, but I don't know how/if that differs from using open in the way you have. -- Posted via http://www.ruby-forum.com/.