2
열려있는 파일을 제외했을 때 열린 파일에 대해 inotifywait
이 여전히보고하는 이유를 설명 할 수 있습니까?inotifywait에서 특정 이벤트 만 수신하는 방법은 무엇입니까?
mkdir /tmp/a
inotifywait --exclude acess,attrib,close_write,close_nowrite,close,open,moved_to,moved_from,move,delete,delete_self,unmount -r -m /tmp/a/
touch /tmp/a/test
/tmp/a/ OPEN test
/tmp/a/ CLOSE_NOWRITE,CLOSE test
새로운 파일이나 현재 파일이 수정되면 관심이 있습니다.
CentOS 7을 사용합니다.
'--exclude'가 일치 * 파일 이름 *을 제외입니다 않습니다. 특정 이벤트를 제외하는 것과 아무런 관련이 없습니다. 'inotifywait' 맨 페이지를보십시오. – larsks