Is there something like Perl's Win32::FileNotify for Linux or OS X?

前端 未结 3 1121
粉色の甜心
粉色の甜心 2021-01-21 17:39

I\'ve been using Win32::FileNotify on Windows, and I was curious to know if there were something similar for Linux and OS X. I haven\'t been able to find such a module using Goo

相关标签:
3条回答
  • 2021-01-21 18:14

    While I don't know of a specific cross platform solution there is inotify on linux (well on modern kernels from 2.6.13) and from the Inotify module from CPAN. As for OS X, there is apparently the kqueue syscall but I have no experience of using it.

    0 讨论(0)
  • 2021-01-21 18:15

    File::ChangeNotify sounds like a cross-platform way to do this.

    0 讨论(0)
  • 2021-01-21 18:18

    For systems where famd can run (Irix, Linux, BSDs, most Unices) there is SGI::FAM and Sys::Gamin, both of which do not build straight out of CPAN or tarball, but do work well once you get them working.

    0 讨论(0)
提交回复
热议问题