Discussion:
Equivalent linux notify for FreeBSD
Carlos Lopez
2021-04-18 06:45:53 UTC
Permalink
Good morning,

Is there something equivalent like the inotify options for FreeBSD? I am trying to generate a script that monitors a list of files and moves them once they are closed.


Best regards,
C. L. Martinez
Paul Procacci
2021-04-18 07:24:32 UTC
Permalink
This thread goes over several solutions which use kqueue:

https://forums.freebsd.org/threads/inotify-for-freebsd.38162/

Last post was 2018' but I'm pretty sure the information there still applies.
If you are comfortable writing C, you could even write a small binary which
does this (using kqueue) yourself.

~Paul
Post by Carlos Lopez
Good morning,
Is there something equivalent like the inotify options for FreeBSD? I am
trying to generate a script that monitors a list of files and moves them
once they are closed.
Best regards,
C. L. Martinez
_______________________________________________
https://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "
--
__________________

:(){ :|:& };:
Gian Piero Carrubba
2021-04-18 07:33:02 UTC
Permalink
Post by Carlos Lopez
Is there something equivalent like the inotify options for FreeBSD? I
am trying to generate a script that monitors a list of files and moves
them once they are closed.
There's kqueue, but there are substantial differences from inotify
(e.g.: I don't think you can monitor a directory). I don't know if
there's any ready-to-use command line tool to take advantage of kqueue,
though.

Ciao,
Gian Piero.
Arnold Greyling
2021-04-19 09:08:49 UTC
Permalink
Post by Carlos Lopez
Good morning,
Is there something equivalent like the inotify options for FreeBSD? I am trying to generate a script that monitors a list of files and moves them once they are closed.
Looking at freshports I see there are two ports libinotify and inotify-tools that may be what you want.

Regards
Arnold
--
Arnold Greyling
Loading...