From: Pito Salas Date: 2009-08-25T21:08:26+09:00 Subject: Re: Asynchronous process to process pipe IO Robert Klemme wrote: > Then you'll want to use one of the popen family of functions. Even with > IO.popen you can pass arguments: > > IO.popen ["./iacommand.rb", "arg", "arg"] do |io| > ... > end > > Note, if you also want to write to the process's stdin, you need to > provide a file mode as second argument. See docs. This is what I originally had. Pretty similar... open("|-", "r") do |worker| if worker ... else exec("./iacommand.rb", "arg", "arg") end end How do you think that the idea you show above is different/better? This gets pretty subtle... Thanks again for the great thread about Threads :) -- Posted via http://www.ruby-forum.com/.