• how to..

    From zeneca@3:770/3 to All on Thu Apr 14 16:34:40 2022
    Get a 'signal' when a file is modified???

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Lew Pitcher@3:770/3 to zeneca on Thu Apr 14 14:41:02 2022
    On Thu, 14 Apr 2022 16:34:40 +0200, zeneca wrote:

    Get a 'signal' when a file is modified???

    Use inotify(7).

    INOTIFY(7) Linux Programmer's Manual INOTIFY(7)

    NAME
    inotify - monitoring filesystem events

    DESCRIPTION
    The inotify API provides a mechanism for monitoring filesystem events.
    Inotify can be used to monitor individual files, or to monitor directo-
    ries. When a directory is monitored, inotify will return events for
    the directory itself, and for files inside the directory.

    ...

    SEE ALSO
    inotifywait(1), inotifywatch(1), inotify_add_watch(2), inotify_init(2),
    inotify_init1(2), inotify_rm_watch(2), read(2), stat(2), fanotify(7)

    --
    Lew Pitcher
    "In Skills, We Trust"

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)