1

Is there anything about the nature of inotify's inotifywait that would result in unpredictable behavior (or predictable problems) when running two or more scripts that each uses inotifywait to watch the same file or set of files?

Or is it safe/ok, technically, to have multiple scripts using inotifywait on the same files?

alec
  • 345
  • 3
  • 14

1 Answers1

3

Yes, it is safe. inotify is a Linux kernel API which allows concurency.

  • Thanks for editing that to say "it is safe". I have to wait a few minutes before I'm allowed to accept it ;) – alec Nov 14 '21 at 21:44