Rich Freeman via plug on 11 Feb 2022 11:34:58 -0800


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] fswatch, etc


On Fri, Feb 11, 2022 at 11:40 AM jeffv via plug
<plug@lists.phillylinux.org> wrote:
>
> fswatch – Monitors Files and Directory Changes or Modifications in Linux
>
> https://www.tecmint.com/fswatch-monitors-files-and-directory-changes-modifications-in-linux/

This is of course a more platform-agnostic solution, but if you're on
linux+systemd you can use path units to trigger something like
starting a service anytime a file path changes.

man systemd.path

It uses inotify which I imagine is how fswatch also works.

-- 
Rich
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug