Linux – Run a program/script when a certain named file is created
I am using Zoneminder (ZM) to monitor the cameras around my property and am trying to find a method to monitor the image directory that ZM uses to store image files of recorded motion events. The program creates a new directory for each event and places numerous (sometimes 100’s) images in the directory with a format such as 00094-capture.jpg. However, in each folder there is one that is always named “snapshot.jpg”.
Run a program/script when a certain named file is created
I am using Zoneminder (ZM) to monitor the cameras around my property and am trying to find a method to monitor the image directory that ZM uses to store image files of recorded motion events. The program creates a new directory for each event and places numerous (sometimes 100’s) images in the directory with a format such as 00094-capture.jpg. However, in each folder there is one that is always named “snapshot.jpg”.