updated README.md

This commit is contained in:
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/.