Medi Montaseri wrote:
> 
> I know of a feature in SGI's File System that launches an event when something
> including data changes happen to a file. This might be a generic Journalling FS
> feature. In which case installing a JFS might be one way. However I am not sure
> of the current state of JFS on Linux. I know there has been many talks including
> SGI contributions, but don't know of any current GA version. Maybe others can
> educate me as well.

Or you could use FreeBSD 4.x with kqueue support. With an kernel queue
you can select() on any kernel event, including filesystems, files and
directories.

See the man page:


http://www.FreeBSD.org/cgi/man.cgi?query=kqueue&apropos=0&sektion=0&manpath=FreeBSD+4.2-RELEASE&format=html

and see 'tail' for an programming example:

 http://www.FreeBSD.org/cgi/cvsweb.cgi/src/usr.bin/tail/

-- 
Andre


> Benjamin Lee wrote:
> 
> > Slightly off topic...
> >
> > I was wondering if anyone has used something like 'watch' or 'stat' (or
> > somthing else?) to detect the modification (change) of a file or directory,
> > and then trigger an rsync?
> >
> > Of course, I could settle with a crond rsync every minute or so, I guess!
> > I do this at the moment, was just thinking about an alternative...
> >
> > On Fri, Apr 13, 2001 at 05:23:22PM +0200, Karsten W. Rohrbach wrote:
> > > Peter van Dijk([EMAIL PROTECTED])@2001.04.13 10:23:26 +0000:
> > > > I have a central box that generates all configfiles and puts them in a
> > > > directory called /conf/mail on a NetApp fileserver, from which all
> > > > qmail boxes copy their configuration periodically.
> > > >
> > > > Make sure you copy stuff to tmpfiles and then move 'm (also when
> > > > generating files to go into /conf/mail). Especially over
> > > > NFS, doing it any different is guaranteed trouble.
> > > in several projects i used rsync[1] over ssh (openssh[2]) for distributing
> > > configuration between machines (push updates).
> > >
> > > rsync does a great job, supporting incremental/differential updates and
> > > moving the files in place after they have been transmitted and verified.
> > >
> > > happy easter
> > > /k
> > >
> > > links:
> > > [1] http://rsync.samba.org/
> > > [2] http://www.openssh.com/
> > >
> > > --
> > > > Microsoft isn't the answer. Microsoft is the question, and the answer is no.
> > > KR433/KR11-RIPE -- http://www.webmonster.de -- ftp://ftp.webmonster.de
> 
> --
> =======================================================================
> Medi Montaseri, [EMAIL PROTECTED], 408-450-7114
> Prepass Inc, IT/Operations, Software Eng.
> =======================================================================

Reply via email to