* io.c (rb_open_file): encoding in mode string was ignored if perm is
[ruby-svn.git] / sample / drb / dqout.rb
blob4700e55cf7c8d6e3d5d6710f033aea30e0896f9b
1 =begin
2  distributed Ruby --- fetch
3         Copyright (c) 1999-2000 Masatoshi SEKI 
4 =end
6 require 'drb/drb'
7 require 'dqlib'
9 there = ARGV.shift || raise("usage: #{$0} <server_uri>")
11 DRb.start_service
12 queue = DRbObject.new(nil, there)
13 entry = queue.pop
14 puts entry.greeting