xfce 창 관리자가있는 시스템 fedora 15가 있습니다.inotify --formfile 지시문
함께 놀 수있는 inotify 유틸리티가 설치되었습니다.
작업 프로세스 중에 내 파일이 어떻게되는지 제어하려고합니다. 내가 읽기 무시하는 폴더와 파일의 목록을 읽기 쉬운 명령
inotifywait --fromfile ~/list.inotify
inotify를 실행하기 위해 오늘을 사용하는 명령이 있습니다. 내 목록 (list.inotify)
/home/alex
@/home/alex/Torrnets/
@/home/alex/.pulse-cookie
그래서 내 홈 폴더를 읽고 급류 폴더와 .pulse-쿠키 파일을 무시해야 있습니다.
Torrent도 무시합니다. 그러나 .pulse-cookie 파일은 무시하지 않습니다.
이 문제에 대한 해결책은 없습니까? (기반 패턴을 사용하는 솔루션을 게시하지 마십시오, 내가 절대 경로의와 파일 목록 작업 할 무시) 당신이 -e
인수를 지정하지 않으면 inotifywait
가 IN_ALL_EVENTS
와 inotify_add_watch
를 호출합니다
$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