drb server using file/tail to read file, and update client?

  • Thread starter Christopher Aldridge
  • Start date
C

Christopher Aldridge

Hi!

I'm probably doing something completely stupid which is why I'd like
your suggestions please.

[scenerio]
I'm using the file/tail module on a drb server to tail an httpd access
log(for example).

When a client connects, it tells the server to read the log and then
(the client)reports to stdout each new line that the server finds.
[/scenerio]

The only way I could get this to work, was to listen on a drb object
on the client within a new thread.. Then send the file/tail request to
the drb server, (along with the client connection details)..

After which, the server reads each new line of the logfile and calls
the client object which simply does:
puts line

This works, but I feel like there is (or should be) some way of making
the client persistently accept each new line all within the <client>
initiated transaction.

Any suggestions or am I doing it the only way it can be done?

Thanks all!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,012
Latest member
RoxanneDzm

Latest Threads

Top