N
N
Nikolai2017-03-17 23:18:13
linux
Nikolai, 2017-03-17 23:18:13

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

3 answer(s)
D
Dmitry, 2017-03-17
@plin2s

https://ru.wikipedia.org/wiki/Inotify

M
mikes, 2017-03-18
@mikes

lsyncd

V
Vadim K, 2017-03-19
@OLQLOSH

I once used incron

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question