incron | cron-like daemon which handles filesystem events | Cron Utils library
kandi X-RAY | incron Summary
kandi X-RAY | incron Summary
This program is the "inotify cron" system. It consist of a daemon and a table manipulator. You can use it a similar way as the regular cron. The difference is that the inotify cron handles filesystem events rather than time periods. This project was kicked off by Lukas Jelinek in 2006 and then unfortunatally abandoned in 2012. Upstream development and bug-tracking/fixing continued in 2014 on GitHub: .
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of incron
incron Key Features
incron Examples and Code Snippets
Community Discussions
Trending Discussions on incron
QUESTION
I would like to run a php script on a folder whenever content in that folder changes (a file is edited, or overwritten, or added or deleted).
The php script gets a hash code for each file in the folder, and writes all the lines in a hash.txt
file (appending a line like hashcode:filename
for each file, e.g. 2dbb8badb0925833c8ea03ffc941e3a0:file1_blabla.utf8
).
After adding my user to /etc/incron.allow
, I have edited my icrontab -e
in the server, and added the following line:
ANSWER
Answered 2020-Jul-11 at 20:25The file to which the script appended data was written in the watched folder, creating an endless loop. The solution was to create a subfolder containing only the files that the script should analyze and keep both the script and the written file with the result outside of that watched subfolder.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install incron
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page