我有一個帶有xfce窗口管理器的系統fedora 15。inotify --formfile指令
我安裝了一個inotify util來玩。
我想控制,在我的工作過程中,我的文件會發生什麼情況。 有我今天使用的運行inotify的
inotifywait --fromfile ~/list.inotify
該命令容易閱讀文件夾和文件的列表,閱讀和忽略的命令。 有我的名單(list.inotify)
/home/alex
@/home/alex/Torrnets/
@/home/alex/.pulse-cookie
所以應該看我的主文件夾,而忽略的種子文件夾和.pulse-cookie文件。
它忽略了Torrents。但它不會忽略.pulse-cookie文件。
任何解決方案? (請不要發佈解決方案中使用基於模式忽略了,我想用絕對路徑的文件列表工作)
$man inotify
@<file>
When watching a directory tree recursively, exclude the specified file from being watched. The file must be specified with a relative or absolute path according to whether a relative or absolute path is given for watched directories. If a specific
path is explicitly both included and excluded, it will always be watched.
Note: If you need to watch a directory or file whose name starts with @, give the absolute path.
--fromfile <file>
Read filenames to watch or exclude from a file, one filename per line. If filenames begin with @ they are excluded as described above. If <file> is `-', filenames are read from standard input. Use this option if you need to watch too many files to
pass in as command line arguments.
即時對不起,有一個手動報價更新原始文章 – RusAlex