Hello all…
I’ve just looked at druby for the first time
in a few months.
I’m now using 1.7.3 on Win98.
I’ve tried drb 1.3 and 2.0b1, and I can’t seem
to get the simplest things to work.
Anyone know what’s up??
Thanks,
Hal
Hello all…
I’ve just looked at druby for the first time
in a few months.
I’m now using 1.7.3 on Win98.
I’ve tried drb 1.3 and 2.0b1, and I can’t seem
to get the simplest things to work.
Anyone know what’s up??
Thanks,
Hal
In article 001b01c2be9e$3f5c02a0$0300a8c0@austin.rr.com,
Hal E. Fulton hal9000@hypermetrics.com wrote:
Hello all…
I’ve just looked at druby for the first time
in a few months.I’m now using 1.7.3 on Win98.
I’ve tried drb 1.3 and 2.0b1, and I can’t seem
to get the simplest things to work.Anyone know what’s up??
Thanks,
Hal
Are you using the version of drb on each machine you’re trying to use
it with? (disregard the question if you’re just trying to use drb on one
machine with localhost)
“Or perhaps the truth is less interesting than the facts?”
Amy Weiss (accusing theregister.co.uk of engaging in ‘tabloid journalism’)
Senior VP, Communications
Recording Industry Association of America
I got it to work on Win XP (Pro) using ruby 1.7.3 (2002-11-17)
[i386-mswin32] and drb-2.0b1
Let us know what exactly happens when you try simplest of the things.
For example, this could be a simple thing to try:
require ‘drb’
class TstSrvr
def time_now
"It is: " + Time.now.to_s
end
def bye(msg="")
puts msg
Thread.new {sleep(0.1); exit(1)}
nil
end
end
srvObj = TstSrvr.new
DRb.start_service(“druby://localhost:5555”,srvObj)
DRb.thread.join
#------------------------
#drb_client.rb
require ‘drb’
STDOUT.sync = true
cliObj = DRbObject.new(nil,“druby://localhost:5555”)
5.times { |i| puts cliObj.time_now; sleep(2); }
cliObj.bye(‘Bye Bye’)
“Hal E. Fulton” hal9000@hypermetrics.com wrote in message
news:001b01c2be9e$3f5c02a0$0300a8c0@austin.rr.com…
Hello all…
I’ve just looked at druby for the first time
in a few months.I’m now using 1.7.3 on Win98.
I’ve tried drb 1.3 and 2.0b1, and I can’t seem
to get the simplest things to work.Anyone know what’s up??
Thanks,
Hal
I got it to work on Win XP (Pro) using ruby 1.7.3 (2002-11-17)
[i386-mswin32] and drb-2.0b1Let us know what exactly happens when you try simplest of the things.
For example, this could be a simple thing to try:
Thanks, that’s a good reference point.
I’ll try this and report.
Hal
----- Original Message -----
From: “Shashank Date” sdate@kc.rr.com
Newsgroups: comp.lang.ruby
To: “ruby-talk ML” ruby-talk@ruby-lang.org
Sent: Friday, January 17, 2003 10:29 PM
Subject: Re: druby with 1.7.x?
OK, this is working fine.
But the things I tried from the “sample”
directory don’t work; and the stock_watcher
example from TRW ch9 doesn’t work.
Let me give a concrete example:
darray and darrayc - I start the server:
ruby darray.rb
druby://host-computer:3995
[return to exit]
And I start the client:
ruby darrayc.rb druby://host-computer:3995
And it just hangs until I kill the server
with a return.
I tried “localhost” also – not sure what it
means by “host-computer” – no difference.
Hal
----- Original Message -----
From: “Hal E. Fulton” hal9000@hypermetrics.com
To: “ruby-talk ML” ruby-talk@ruby-lang.org
Sent: Saturday, January 18, 2003 1:23 AM
Subject: Re: druby with 1.7.x?
----- Original Message -----
From: “Shashank Date” sdate@kc.rr.com
Newsgroups: comp.lang.ruby
To: “ruby-talk ML” ruby-talk@ruby-lang.org
Sent: Friday, January 17, 2003 10:29 PM
Subject: Re: druby with 1.7.x?I got it to work on Win XP (Pro) using ruby 1.7.3 (2002-11-17)
[i386-mswin32] and drb-2.0b1Let us know what exactly happens when you try simplest of the things.
For example, this could be a simple thing to try:
Thanks, that’s a good reference point.
I’ll try this and report.
Hi.
I got it to work on Win XP (Pro) using ruby 1.7.3 (2002-11-17)
[i386-mswin32] and drb-2.0b1Let us know what exactly happens when you try simplest of the things.
darray and darrayc - I start the server:
ruby darray.rb
druby://host-computer:3995
[return to exit]And I start the client:
ruby darrayc.rb druby://host-computer:3995And it just hangs until I kill the server
with a return.
Please use ‘DRb.thread.join’ instead of ‘gets’.
in windows, $stdin.gets will block. maybe.