[Mono-list] Hello

Erik Bågfors erik@bagfors.nu
26 May 2003 12:47:39 +0200


On Sun, 2003-05-25 at 21:18, Jonathan Stowe wrote:
> On Sat, 24 May 2003, Terry wrote:
> >
> > Also, I want to use FileSystemWatcher to watch for changes to my cfg files,
> > but after setting things up, it appears that after making changes to files
> > in the watched directory, the changed event never fires.  It does work on
> > Windows, however.  I do not get an exception - nothing happens.  I'm using
> > the "FileSystemWatcher/FileSystemEventHandler" method rather than the
> > "WaitForChanged" method (I see that's not implemented yet :-).
> >
> 
> 
> I may be entirely wrong but at a cursory glance I don't think there is
> anything there that could possibly make it work yet (although I am sure
> that it will at some point)  Windows has direct OS support for this kind
> of stuff but it's going to require quite a lot more code for it to work on
> Linux (although the kernel does have the hooks if I remember correctly,
> they aren't exposed to user code anywhere.)

Isn't this what FAM is for?

fam, the File Alteration Monitor, provides a daemon and an API which
applications can use to be notified when specific files or directories
are changed.

/Erik

-- 
erik@bagfors.nu
fingerprint: 6666 A85B 95D3 D26B 296B 6C60 4F32 2C0B 693D 6E32