【问题标题】:inotifywait not triggering when files created from my node js app当从我的节点 js 应用程序创建文件时,inotifywait 未触发
【发布时间】:2017-04-27 10:20:29
【问题描述】:

这是我的 Shel 脚本。

while true
do
        inotifywait --exclude .swp -e create -e modify -e delete -e move  /etc/autogenerated

        echo "Folder state changed"

done

我正在使用 NodeJS 应用程序直接在 /etc/autogenerated 文件夹中创建文件。它没有触发 inotifywait 触发器。

但是如果我从终端手动复制文件,它是工作文件。

对我有什么建议吗?

【问题讨论】:

    标签: node.js inotify


    【解决方案1】:

    您可能想查看来自 swarminglogic 的 watchfile

    【讨论】:

      猜你喜欢
      • 2012-01-27
      • 2021-07-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-01-18
      • 2019-03-06
      • 2018-07-22
      相关资源
      最近更新 更多