0

Here is a script for executing custom script on file changed in directory. The thing is that it doesn't react on file changes. Where is a mistake ?

printf "starting watching folder...\n";
while inotifywait -r /media/my_folder
do
  echo "a file changed..."
  custom_script.sh
done

0 Answers0