From: ajay paswan Date: 2012-10-02T01:34:03+09:00 Subject: cannot reverse string using drb :( Just playing with DRB serv.rb: #!/usr/bin/env ruby -w # simple_service.rb # A simple DRb service # load DRb require 'drb' # start up the DRb service a=["first","second","third","fourth"] b=false object=[a,b] DRb.start_service 'druby://127.0.0.1:8008', object # We need the uri of the service to connect a client puts DRb.uri while !object[1] #puts "still its f" sleep(1) end object[0].each do |aa| puts aa end ---------------------------------------------------------------- client.rb #!/usr/bin/env ruby -w # simple_client.rb # A simple DRb client require 'drb' DRb.start_service # attach to the DRb server via a URI given on the command line remote_array = DRbObject.new nil, ARGV.shift strs= remote_array[0] flag = remote_array[1] for i in 0..remote_array[0].length-1 remote_array[0][i]=remote_array[0][i].reverse end puts "all string reversed" remote_array[1]=true puts "flag made true to finish" it prints: first second third fourth But U know what I wanted!! :( -- Posted via http://www.ruby-forum.com/.