dave giffin
2003-Oct-16 06:49 UTC
[Samba] how to call an executable script each time a file is created or modified
is it possible to have a samba daemon call an executable script each time a file within one of it shares is modified or a new file is created? I'm looking to develop a file catalogging system for my file server which depends on my software being notified each time a file is modified or a new file created. This allows the modified/new file to be scanned for relavent information. :) __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com
Jeremy Allison
2003-Oct-16 17:33 UTC
[Samba] how to call an executable script each time a file is created or modified
On Wed, Oct 15, 2003 at 11:49:31PM -0700, dave giffin wrote:> is it possible to have a samba daemon call an > executable script each time a file within one of it > shares is modified or a new file is created? > > I'm looking to develop a file catalogging system for > my file server which depends on my software being > notified each time a file is modified or a new file > created. > > This allows the modified/new file to be scanned for > relavent information.You need to write yourself a Samba VFS module. Start with the sample one shipped with Samba. Jeremy.
John H Terpstra
2003-Oct-17 21:10 UTC
[Samba] how to call an executable script each time a file is created or modified
On Wed, 15 Oct 2003, dave giffin wrote:> is it possible to have a samba daemon call an > executable script each time a file within one of it > shares is modified or a new file is created?Yes. You will need to write a VFS module to do that. Suggest you start with Samba-3.0.1pre CVS code. Look in the directory: ~samba/sources/modules There are a few sample modules in that directory that will give you the idea.> > I'm looking to develop a file catalogging system for > my file server which depends on my software being > notified each time a file is modified or a new file > created.You will need to craft your own module. Please do contribute your solution to add to the choices already there. - John T.> > This allows the modified/new file to be scanned for > relavent information. > > :) > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com >-- John H Terpstra Email: jht@samba.org