I'm trying to monitor a remote Windows Share for changes (the server can be an actual Windows machine or a Linux machine with Samba server). AFAIK the SMB protocol supports a kind of event-based notification:
And I can find it implemented server-side in Samba in the
change_notify option in
My question is: how can I watch for such events from the client side from a Linux machine? I'd like to setup something that works in a fashion similar to
inotifywait and be notified with an event when the content of files on the share changes, or when files are created, deleted or moved.