inotifyrun/README.md
2020-10-11 10:18:39 +00:00

403 B

inotifyrun

Run a command every time a file is opened

Setup

  1. Clone: git clone https://gitlab.com/niansa/inotifyrun.git --recursive && cd inotifyrun
  2. Compile: clang -rdynamic inotifyrun.c libcatch/libcatch.c -o inotifyrun
  3. Install: sudo cp inotifyrun /usr/local/bin/

Usage

This should be self-explanatory:

inotifyrun ./test.sh "echo hi" ~/Documents/table.odt "killall libreoffice"