Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

command line tool for inotify

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 README.mkd
Octocat-spinner-32 react.py
README.mkd

Command line tool for inotify

Dependencies

Usage

See "react --help"

Hello World

react.py /tmp -p '*.txt' 'echo $f'

This is a simple test. Execute the above command and create and modify directories and files in /tmp. For every file ending with .txt its full path is printed on the console every time this file is created or changed.

Executing test suites

react.py ../ -p '*.hs' ./runTests

The main motivation of this tool was to be able to trigger the execution of a test suite each time a source file of the project is modified. This speeds up my vim-based software development a lot.

Setting file ACL entries

react.py /srv/www/team 'setfacl -m g:team:rwx $f'

A major disadvantage of default file ACLs is that it only reacts on newly created files. If you move a file into a directory with a default ACL entry, this file's ACL entries are not updated. In practice this means that sooner or later every default-ACL-based control management will break. With react you can circumvent this problem.

Information

Something went wrong with that request. Please try again.