Thanks. I will take a look. Doru
On 6 Apr 2012, at 17:32, David T. Lewis wrote: > On Fri, Apr 06, 2012 at 03:21:33AM -0700, drush66 wrote: >> It kind of depends on the OS, but all of them let you subscribe to events on >> the files in some way. So you would subscribe with os to notify you when >> some file is changed in some way, keep some internal house keeping >> information like position up to which you have displayed info, verify that >> file has indeed changed, read and display new stuff, update internal info. >> >> In essence nothing substantially complicated, but windows and unix interface >> differs, and at least windows (never investigated unix api in more detail) >> requires you to dance a bit before you get some results. >> >> Such pieces of code is also often used by text editors to notify user that >> the file in editor has been changed from the outside. (maybe moose already >> has something like that?) >> >> Davorin Rusevljan > > On unix/linux/osx you can probably do this with AioPlugin. The OSProcess > unit tests provide examples in AioEventHandlerTestCase. The example in > AioEventHandlerTestCase>>testFileReadableEvent is a good place to start. > > Dave > > -- www.tudorgirba.com "We are all great at making mistakes."
