xfceウィンドウマネージャーを備えたシステムfedora 15があります。
遊ぶためにinotify utilをインストールしました。
作業中に自分のファイルがどうなるかを制御したい。今日、inotifyを実行するために使用するコマンドがあります
inotifywait --fromfile ~/list.inotify
そのコマンドは、読み取りおよび無視するフォルダーとファイルのリストを簡単に読み取ります。私のリストがあります (list.inotify)
/home/alex
@/home/alex/Torrnets/
@/home/alex/.pulse-cookie
したがって、ホーム フォルダーを読み取り、Torrents フォルダーと .pulse-cookie ファイルを無視する必要があります。
トレントも無視します。ただし、.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.