README (1069B)
1 wendy 2 ===== 3 Inotify-based directory watcher. 4 5 An arbitrary command is run whenever one or more filesystem events occur. 6 Events are reported through the inotify API, which is specific to the 7 Linux kernel. 8 9 Features 10 ----- 11 - Event(s) selection done with bitwise mask 12 - Automatically watch new directories in recursive mode 13 - Exports event informations in the command environment 14 - Path can be specified as argument or from `STDIN`. 15 16 Usage 17 ----- 18 Refer to wendy(1) manual page for details and examples. 19 The below commands are provided as a quick introduction. 20 21 Recompile a project when a source file changes: 22 23 ls *.[ch] | wendy make 24 25 Dynamic preview of a manual page (note the use of simple quotes): 26 27 export MANPAGER=/bin/cat 28 wendy -w manual.1 sh -c 'clear; man ./$WENDY_INODE' 29 30 Synchronize the local directory with a remote one. The value `394` 31 is a sum of events: `MODIFY, CLOSE_WRITE, MOVED_TO, CREATE`: 32 33 wendy -rd -m 394 -w . rsync -av . remote:/dest 34 35 Installation 36 ----- 37 Edit config.mk if needed, then build/install with the following commands: 38 39 make 40 make install