Hello, I'm looking for a way to call a shellscript every time a file is closed. (It might sound ridiculous but i really want to :). Samba provides the 'postexec' configuration directive, but this is on a session-basis. Anyway, am i overlooking something or is there just not a function which provides this functionality? regards, Joost Bijl
it's gonna go in an endless loop!! :) unless its samba related only ;) On Wed, 2002-01-09 at 20:00, Joost Bijl wrote:> Hello, > > I'm looking for a way to call a shellscript every time a file is closed. (It > might sound ridiculous but i really want to :). Samba provides the > 'postexec' configuration directive, but this is on a session-basis. Anyway, > am i overlooking something or is there just not a function which provides > this functionality? > > regards, > Joost Bijl > > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba >
Hi, Joost Bijl wrote:> I'm looking for a way to call a shellscript every time a file is closed. (It > might sound ridiculous but i really want to :). Samba provides the > 'postexec' configuration directive, but this is on a session-basis. Anyway, > am i overlooking something or is there just not a function which provides > this functionality?AFAIK such a function doesn't exist. But you might want to take a look at the VFS (Virtual File System) stuff in samba in the examples/VFS dir, you can hook into file functions like open/close(/etc/etc). This is for example used by a project which uses a virus scanner to scan a file upon access and it's actually designed for things you are describing. However that's ofcourse a bit more difficult than just writing a shell script and add a configuration parameter :P. Syzop.