Answer the question
In order to leave comments, you need to log in
Linux - run job on folder changes?
Hello.
There is a small case.
File storage on NextCloud + scanner that writes files to a network folder (Samba).
Accordingly, after the scanner has written the file, NextCloud does not know anything about it and you need to start scanning with the following command: cd /var/www/html/nextcloud; php occ files:scan --path=/Scan
This is wrapped in Cron and runs every minute.
Tell me, if there is some software that performs tasks when the file system changes? To scan a folder when files appear there and not more than a thousand times a day.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question