updated README.md

这个提交包含在:
Albert S. 2017-07-30 10:45:10 +02:00
父节点 37f30005dd
当前提交 c2b788ad50
共有 1 个文件被更改,包括 8 次插入3 次删除

查看文件

@ -1,9 +1,10 @@
What is adhocify?
=================
adhocify uses inotify to watch for file system events. Once an event
occurs it can execute a script. The path of the file and the event
will be passed to that script.
will be passed to that script.
Requirements
============
adhocify only runs on Linux. You need a kernel and libc with inotify
@ -45,4 +46,8 @@ adhocify -w /tmp -i *.txt /home/user/myscript.sh
* Watches for IN\_CLOSE\_WRITE events in /tmp/ but will not pass *.txt files to the script
find . -type d | adhocify -s /home/user/myscript.sh
* Starts monitoring every subdirectory of the current path for IN\_CLOSE\_WRITE events. However, inotify has
limits, thus it may not always work, e. g. when inotify descriptors are being used by other programs or the tree is too large. Therefore adhocify will exit
if it cannot setup a watch for all supplied directories. See inotify(7), /proc/sys/fs/inotify/.