From: Imre Farkas Date: 2010-05-06T23:38:24+09:00 Subject: Kernel.open 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" output = fh.gets() puts output fh.puts "rails\n" output = fh.gets() puts output fh.close() I've noticed that the script runs fine if I try to run hunspell without the '-m' parameter (-m is for morhological analysis). What do I do wrong here? Thanks! -- Posted via http://www.ruby-forum.com/.