I need to run a python script on every file, that is written into a specific folder. So I created a file in /etc/incron.d/ and added the following line:
/srv/ftp IN_CREATE /usr/bin/python3 /srv/parser.py $@/$# >> /var/log/parser/incron.log 2>&1
the syslog shows me:
incrond[32630]: (system::parser) CMD (/usr/bin/python3 /srv/parser.py /srv/ftp/00008260_2015-12-09T17-31-36.csv >> /var/log/parser/incron.log 2>&1)
but the log is empty, and the script did not do anything