kqwait

Wait for file system events on macOS files or directories

brewmacoslinux
Try with needOr install directly
Source

About

Wait for events on files or directories on macOS

Commands

kqwait

Examples

Wait for changes to a specific file$ kqwait /path/to/file.txt
Wait for events on a directory and execute a command when triggered$ kqwait -c 'echo File changed' /path/to/directory
Monitor multiple files or directories simultaneously$ kqwait /path/to/file1 /path/to/file2 /path/to/directory