mirror of
https://gitlab.com/niansa/inotifyrun.git
synced 2025-03-06 20:48:32 +01:00
Run a command every time a file is opened
libcatch@db86a25c19 | ||
.gitignore | ||
.gitmodules | ||
inotifyrun.c | ||
license.h | ||
LICENSE.txt | ||
README.md | ||
test.sh |
inotifyrun
Run a command every time a file is opened
Setup
- Clone:
git clone https://gitlab.com/niansa/inotifyrun.git --recursive && cd inotifyrun
- Compile:
clang -rdynamic inotifyrun.c libcatch/libcatch.c -o inotifyrun
- Install:
sudo cp inotifyrun /usr/local/bin/
Usage
This should be self-explanatory:
inotifyrun ./test.sh "echo hi" ~/Documents/table.odt "killall libreoffice"