【发布时间】:2009-07-16 10:08:18
【问题描述】:
我尝试使用 inotifywait 来检测每次文件或文件夹被实时移动到文件夹中(例如 /root)
我试过这个,它确实检测文件夹和文件,但这是一个创建的文件,我希望它用于移动的文件/文件夹。
inotifywait --monitor --format %f --event create /root
然后我使用它,但是使用它只会看到何时移入文件夹,当我移入文件时什么都没有显示... :(
inotifywait --monitor --format %f --event moved_to /root
知道发生了什么吗?
PS,我使用的是 Linux,Debian 5 (Lenny)。
【问题讨论】: