repo.or.cz
/
ruby-svn.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
* io.c (rb_open_file): encoding in mode string was ignored if perm is
[ruby-svn.git]
/
sample
/
drb
/
holderc.rb
blob
8dd72ebd118df5b1cfff5dfcc0110d3e5613eb30
1
require 'drb/drb'
2
3
begin
4
there = ARGV.shift || raise
5
rescue
6
$stderr.puts("usage: #{$0} <server_uri>")
7
exit 1
8
end
9
10
DRb.start_service()
11
ro = DRbObject.new(nil, there)
12
13
ary = []
14
10.times do
15
ary.push(ro.gen)
16
end
17
18
sleep 5 if $DEBUG
19
20
ary.each do |e|
21
p e.sample([1])
22
end