Ubuntu – How to make "inotifywait" run only once, after 5 seconds passed from all events detected
A little help, please, with this script: #!/bin/bash WATCH_DIR="/home/media/Movies" # Comanda FileBot FILEBOT_CMD="filebot -rename -r -non-strict "$WATCH_DIR" --db TheTVDB --format "{n}/Season {s}/{n} - {s00e00} - {t}" --action move --order Airdat" # Monitorizeaza modificarile inotifywait -m -r -e close_write "$WATCH_DIR" --format…