Execute script/program when file changes
Fresh3 days ago
Mar 15, 202614113 viewsConfidence Score0%
0%
Problem
Is there a way to set something like a trigger on a file, so that everytime the file is changed a script or program will be executed? I only found a mechanism for this within a shell script but would like to know if there is a mechanism for that on operating system basis (so that I don't have to ma…
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Execute script/program when file changes
Low Risk
one of your options is the inotify subsystem of the linux kernel: inotify is a Linux kernel subsystem that acts to extend filesystems to notice changes to the filesystem, and report those changes to applications but since is kernel-land, you need so…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix