Watch file change in linux with inotify
#!/bin/bash
inotifywait -m -e modify --format '%f' /var/stream | while read FILE
do
php /var/www/app/consume.php $FILE
done
#!/bin/bash
inotifywait -m -e modify --format '%f' /var/stream | while read FILE
do
php /var/www/app/consume.php $FILE
done