多个脚本可以使用 inotifywait 同时观看同一个文件吗?

can multiple scripts use inotifywait to watch the same file simultaneously?

当 运行 两个或多个脚本各自使用 inotifywait 观看同一个文件或一组文件?

或者 safe/ok,从技术上讲,让多个脚本在同一个文件上使用 inotifywait

是的,很安全。 inotify 是一个 Linux 内核 API 允许并发。