/watch-files

Brief script to keep track of created files in specified directory.

Primary LanguageShellGNU General Public License v2.0GPL-2.0

watch-files

Brief script to keep track of created files in specified directory.

Installation

Before starting, make sure that package inotify-tools is installed.

  1. First, clone the project in your favorite folder (assuming git is already installed) :

cd /home/jdoe/ && git clone https://github.com/ldvc/watch-files

  1. Create symlinks (or copy files) in order to have correct environment :

sudo ln -s /home/jdoe/watch-files/watch-files.conf /etc

sudo ln -s /home/jdoe/watch-files/*.sh /usr/local/bin

sudo ln -s /home/jdoe/watch-files/*.cron /etc/cron.d

sudo ln -s /home/jdoe/watch-files/watch-files.init /etc/init.d

Customization

Please modify DIR_TO_WATCH and EMAIL in the watch-files.conf file in order to suit your needs.