Thursday, 27 April 2017

inotifywait not triggering when files created from my node js app

This is my shel script.

while true
do
        inotifywait --exclude .swp -e create -e modify -e delete -e move  /etc/autogenerated

        echo "Folder state changed"

done

I am creating file inside /etc/autogenerated folder directly using NodeJS app. It is not trigging the inotifywait trigger.

But If I manually copy file from terminal it working file.

Any suggestion for me?



via vimal prakash

No comments:

Post a Comment