* io.c (rb_open_file): encoding in mode string was ignored if perm is
[ruby-svn.git] / sample / drb / holderc.rb
blob8dd72ebd118df5b1cfff5dfcc0110d3e5613eb30
1 require 'drb/drb'
3 begin
4   there = ARGV.shift || raise
5 rescue
6   $stderr.puts("usage: #{$0} <server_uri>")
7   exit 1
8 end
10 DRb.start_service()
11 ro = DRbObject.new(nil, there)
13 ary = []
14 10.times do 
15   ary.push(ro.gen)
16 end
18 sleep 5 if $DEBUG
20 ary.each do |e|
21   p e.sample([1])
22 end