Linux has a subsystem call inotify , which can cause file systems to report changes to the file system in applications.
Your Linux system probably has a package called incron
that makes it easy to use inotify
. (Or find available packages for any package whose description contains the word "inotify").
incron
cron
, , cron
script , incron
script , .
PS. , Ubuntu incron
sudo apt-get install incron