There is a folder, when loading files into it, the script is processed using incron with the IN_MODIFY modifier.
What modifier / key to install, so that the script is executed if one of the files is deleted from the folder?
The user downloads and deletes files from his folder from his Windows machine. Folder shared by samba.
Tried the modifier - IN_DELETE script does not run. File names are not known in advance, the folder name is static.
An example of a setting that works when copying files to a folder (output incrontab -l):
/home/path IN_MODIFY /home/pathwhitscript/script.sh An example that, as I mean, should run my script when deleting a file from a folder:
/home/path IN_DELETE /home/pathwhitscript/script.sh The script itself is working. The only question is how to make incron run the script when the file is deleted.
echo тест >> /tmp/file. and information about whether something appeared in the file, and if not, what errors were issued by the incron program. - aleksandr barakin