how to..

Apr 14, 2022 1 Replies

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)

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required