From: Joel VanderWerf Date: 2005-08-10T05:48:20+09:00 Subject: Re: drb server using file/tail to read file, and update client? Ryan Leavengood wrote: > Christopher Aldridge said: > >>Any suggestions or am I doing it the only way it can be done? > > > If I understand your problem correctly, the issue is that you now have to > constantly poll the server to see if there are more lines, when really > what you want is to have the server tell the clients of the new lines. > > So your options are either to code the clients so they also have a DRb > server, which the server connects to when outputting lines from the log > file, or possible to use Rinda and a Tuplespace. IIRC, the client can also call a method with a block. The block is undumped, so it remains on the client side, with a proxy on the server side. When the server's implementation of the method yields to the block, it calls the code on the client side. DRb is sooo elegant! An example of that idea is embedded in a little distributed chat server example that comes with my foxtails project, using distributed observers wired up to fox gui widgets. But it's probably easier to code this up from scratch, once you know that DRb supports distributed block yields. -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407