Chinaunix

标题: 在线等. UNIX下C如何监视文件夹 [打印本页]

作者: iwome    时间: 2006-03-23 13:54
标题: 在线等. UNIX下C如何监视文件夹
谁知道UNIX下面C程序如何监视文件夹.系统SCO506.有知道的写个思路也好.

监视该文件夹的变动情况.文件,目录的增删修改.
作者: albcamus    时间: 2006-03-23 14:55
http://sourceforge.net/projects/tripwire/
作者: sishanji    时间: 2006-03-23 16:17
stat
作者: iwome    时间: 2006-04-03 10:43
http://sourceforge.net/projects/tripwire/

这个地址的东西是C++的.有点复杂.不知道斑竹能不能给讲讲原理呢.谢谢了哦
作者: wanghi    时间: 2006-04-03 13:29
fcntl 有一个F_NOTIFY的功能

你MAN一下
作者: iwome    时间: 2006-04-03 16:40
我在SCO506下面
man fcntl
man M fcntl
man TCL fcntl
都找不到你上面提的那个F_NOTIFY
作者: iwome    时间: 2006-04-03 17:07
搜索引擎查了一下..Linux2.2内核以上可用

UNIX不可用.
作者: iwome    时间: 2006-04-17 11:57
谁还有什么办法的没.....
作者: 思一克    时间: 2006-04-17 12:01
man fam
作者: converse    时间: 2006-04-17 12:25
标题: 回复 9楼 思一克 的帖子
思一克GG好久不见了呀...也该有半年没来C版发言了吧
作者: iwome    时间: 2006-04-17 12:34
$ man fam
man: fam not found
作者: 思一克    时间: 2006-04-17 12:40
安装fam
作者: iwome    时间: 2006-04-17 14:19
What filesystems can FAM monitor?

FAM depends on a file monitor for local filesystems. IMon should work on any filesystem, as should polling mode in case you have no kernel monitor.

FAM also has special support for remote filesystems. If you monitor an NFS-mounted filesystem, FAM will try to get updates from a FAM running on the remote system, reducing network load.
作者: iwome    时间: 2006-04-17 14:20
目前我的系统是SCO506.

估计不好用啊.
作者: b46    时间: 2006-04-17 14:20
原帖由 思一克 于 2006-4-17 12:40 发表
安装fam


google fam




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2