On 14/02/07, Ira Abramov <[EMAIL PROTECTED]> wrote:

Evening,

I have a windows proggie that looks at a directory (a samba share in
this case) and subscribes to changes. as soon as a file is created there
it should pick it up, use it and delete it. I don't have the source of
the program to make it peridicly scan the directory, it's only set up to
request a callback.

I found very little info about samba supporting fam, and either way fam
was kicked out of Etch (or maybe earlier?) in favor of a package called
gamin on which the entire KDE package set depends. trying to install fam
will result in a complete removal of KDE...

so, what do I dig for? I must be using the wrong terminology (notify?
subscribe?) because Google gets me nowehere.


I'm not sure I follow the sequence of events that you expect - the
monitoring program runs on Windows and looks at a directory shared over the
network through Samba? Then why is FAM supposed to help here? FAM is a
Linux-side thing. Are you looking to create some sort of a "proxy" that will
receive notifications when the directory changes on the Samba server then
send an event to the Windows program over the net?

As for the linux-level of things - it looks like Gamin is just a subset
implementation of FAM  ( http://www.gnome.org/~veillard/gamin/) and is based
on inotify. So you can either use the FAM API with Gamin or go directly to
the system level and use inotify(7) (that would be my personal choice
between the two).

Cheers,

--Amos

Reply via email to