`
willzh
  • 浏览: 296638 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Mac OS X下的文件监控

    博客分类:
  • mac
阅读更多
http://www.osxbook.com/software/fslogger/

fslogger's mode of operation is very simple. The following points are particularly noteworthy:
FSLogger

    * It must be run as root, for example, via the sudo command. This is so because subscribing to the kernel's file system change notification service requires super-user privileges.
    * It takes no useful arguments. You can, however, pass in arbitrary arguments that will result in an informational message.
    * It does not interfere with the working of Spotlight, since the kernel supports multiple such subscribers.
    * It will not run on any Mac OS X version older than 10.4.

Once active, fslogger will wait for change notifications to arrive from the file system layer in the kernel. The various file system operations that are communicated to fslogger (and other subscribers such as Spotlight, specifically the metadata server) include:

    * File creation
    * Folder creation
    * File or folder deletion
    * Changes to the stat structure (for example, a permission change)
    * Renaming of a file or a folder
    * Content modification
    * Content exchange between two files
    * Finder information changes
    * Change of ownership



http://www.fernlightning.com/doku.php?id=software:fseventer:start
    *
      Observes filesystem changes using the same underlying API as Spotlight
    *
      Provides a graphical representation of the file activity
    *
      Example use could be to determine what files are changed via software installation, preferences, etc
    *
      Requires admin access & will only work on Mac OS X 10.4+ “Tiger” and “Leopard”
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics