Re: Native (small) inotifywait-like tool?
| Newsgroups | gmane.os.freebsd.devel.hackers |
|---|---|
| Message-ID | <1D2F1LFzpSRjlUVzAMrUQBbBiOqEQwnumSrSqtGxeh-gRC4fOAKDDkN9PmZRkDUe8jD4he99wQVkwxUj4sszS1Jl33-CjtlpJjlyW3TJz68=@insane.engineer> |
Hi, kqueue(2) should work for this. I'm using that (via a wrapper) in a C++ project to get notified when a file changes. ~ jbo On Wednesday, August 5th, 2026 at 18:43, Bjoern A. Zeeb <[email protected]> wrote: > Hi, > > do we have a native tool (can be way simpler) like inotifywait? > > I am essentially looking for something which will trigger an action when a > file changes; the action could also be in a shell script so "wait" in a shell > script look would be acceptable. > > Problem is that I am very space contraint and don't want to pull in more > libraries etc. when a few kB would already do. > > I assume soemthing like the example in kqueue(2) will almost do? > > I am just wondering: we do not have a tool like this already in base? > > /bz > > -- > Bjoern A. Zeeb r15:7 > >