updated README.md
This commit is contained in:
父節點
37f30005dd
當前提交
c2b788ad50
11
README.md
11
README.md
@ -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/.
|
||||
|
載入中…
新增問題並參考
Block a user