I have a Linux server with incrontab. Here is my incrontab
/home/pi/upload IN_MODIFY /bin/sh /home/pi/autoprint $@/$#
If I am a root user, i tried creating a new pdf file inside the 'upload' folder, and the incrontab event is triggered,, however, if I upload a file via webserver
http://127.0.0.1/upload.php
, a new file is created inside the 'upload' folder,, but the event is not triggered
all root created files,, are recognized and triggers the incrontab script,,, but those created by 'www-data' are not triggered..
Why is that so?
Thanks