分页: 1 / 1
有没有监视文件的软件或者脚本。
发表于 : 2005-09-28 15:20
由 eexpress
就像filemon那样的。
发表于 : 2005-09-28 18:14
由 gnix_oag
不是有两个数据库吗
发表于 : 2005-09-28 23:10
由 eexpress
什么数据库
发表于 : 2005-09-28 23:32
由 gnix_oag
一个是 deb 的吧,
另一个是运行 updatedb 建立的
发表于 : 2005-10-06 0:35
由 firehare
updatedb建立的不会动态监视文件的变动的,你必须在每次使用Locate时,都得重新运行一次Updatedb的!
发表于 : 2005-10-06 10:14
由 eexpress
就是指locate时,从这个数据库中读取位置的那个?
那样不是很大。整个系统都要扫描?
发表于 : 2005-10-06 11:03
由 firehare
正解!
使用 inotify 监控 Linux 文件系统事件
发表于 : 2005-10-11 22:10
由 eexpress
inotify 支持许多非常细粒度的事件 —— 例如 CLOSE 与 CLOSE_WRITE。
int main (int argc, char **argv)
{
/* This is the file descriptor for the inotify device */
int inotify_fd;
/* First we open the inotify dev entry */
inotify_fd = open_inotify_dev();
if (inotify_fd < 0)
{
return 0;
}
发表于 : 2007-07-07 11:33
由 sgt.pepper
inotify怎么用,难道要写代码?
代码: 全选
Mark
Admin Group
Joined: 04 June 2005
Location: United States
Online Status: Offline
Posts: 388
Posted: 18 July 2005 at 12:23pm
http://forum.sysinternals.com/forum_posts.asp?TID=179
Its discontinued since Linus made changes to the Linux kernel that broke Filemon's driver. Linux has no supported way for writing a tool with capabilities equivalent to Filemon for Windows.