mhallin / notify-forwarder

Simple tool that can forward file system events to other machine, such as virtual machines with shared folders
112 stars 21 forks source link

Works with Windows 10 (build #14942 or higher) and Windows Subsystem for Linux #3

Open corford opened 7 years ago

corford commented 7 years ago

Microsoft recently added inotify support to their Windows Subsystem for Linux (see: https://blogs.msdn.microsoft.com/commandline/2016/10/07/wsl-adds-inotify-filesystem-change-notification-support/).

Happy to report running notify-forwarder watch via bash on the windows host and notify-forwarder receive on the linux guest picks up file & directory changes made on the windows host (confirmed by running while true; do inotifywait /vagrant/gitrepos -r; done on the guest).

Only caveats: I had to run notify-forwarder as root on the guest and DELETE events are not picked up (only creation/modification, albeit shown as ATTRIB events by inotifywait).

So you can add Windows 10 to the supported platforms list :)

ohoroyoi commented 6 years ago

How do I use this on windows 7? the command "make" is impossible to run.

jampy commented 5 years ago

@ohoroyoi you need a up-to-date Windows 10

bilogic commented 4 years ago

@corford any steps on how you compiled notify-forwarder for windows 10? Thank you.

corford commented 4 years ago

@bilogic Alas, this was quite a while ago and I'm afraid I can't remember any of the details (completely forgot about this project until GH notified me of your comment just now). I assume I must have compiled it from within the WSL (or cross compiled and moved the binary across).

bilogic commented 4 years ago

let me understand correctly, was it a Windows EXE binary or a Linux one? Can share if it is windows?