Code: Alles auswählen
#!/bin/bash
inotifywait -m -e create /pfad/zum/verzeichnis/ |
while read -r directory action file; do
if [[ "$file" =~ .*server$ ]]; then
/pfad/zu/irgendwas.sh
/usr/bin/sleep 5
fi
done
