#!/bin/bash

inotifywait -m /var/www/camera.stoobz.uk/public_html/raw_captures -e create -e moved_to | while read -r directory
    if [[ "$file" =~ .*264$ ]]; then
	    echo "264 file $file appeared" >> /var/www/camera.stoobz.uk/logs/test1.log
    fi
done
