#!/usr/bin/env ruby -w # simple_service.rb # A simple DRb service # from http://segment7.net/projects/ruby/drb/introduction.html # load DRb require 'drb' # start up the DRb service DRb.start_service nil, [] # We need the uri of the service to connect a client puts DRb.uri # wait for the DRb service to finish before exiting DRb.thread.join