YUKI Hiroshi
null+****@clear*****
Fri Jun 27 18:15:53 JST 2014
YUKI Hiroshi 2014-06-27 18:15:53 +0900 (Fri, 27 Jun 2014) New Revision: e0cf1475710cb4902e876cc422afff64505fc334 https://github.com/droonga/droonga-engine/commit/e0cf1475710cb4902e876cc422afff64505fc334 Message: Output each result Modified files: bin/droonga-engine-absorb-data Modified: bin/droonga-engine-absorb-data (+10 -3) =================================================================== --- bin/droonga-engine-absorb-data 2014-06-27 17:57:25 +0900 (2071cdb) +++ bin/droonga-engine-absorb-data 2014-06-27 18:15:53 +0900 (2f69eb0) @@ -96,9 +96,16 @@ droonga_request_options += ["--receiver-host", options.destination_host] drndump_command_line = [options.drndump] + drndump_options droonga_request_command_line = [options.droonga_request] + droonga_request_options -Open3.pipeline_r(drndump_command_line, - droonga_request_command_line) do |last_stdout, wait_threads| - puts last_stdout.read + +drndump_stdin, drndump_stdout, drndump_stderr = *Open3.popen3(*drndump_command_line) +droonga_request_stdin, droonga_request_stdout, droonga_request_stderr = *Open3.popen3(*droonga_request_command_line) + +drndump_stdout.each do |dump| + droonga_request_stdin.puts(dump) +end + +droonga_request_stdout.each do |result| + puts result end exit 0 -------------- next part -------------- HTML����������������������������... Télécharger