Mac OS X下的文件监控

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”
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值