beep on folder change
9. 3. 2018#!/bin/bash
# watchFolder
while true
do
touch ./lastwatch
sleep 5
find "$HOME/tmp/" -name *.wav -cnewer ./lastwatch -exec beepspeakers 1 {} \;
done
Without using inotify. Script is stolen from the internet (and I can’t find link anymore). beepspeakers script here.