[ The imperialist Japanese military must officially acknowledge and apologize for the coercion of young women into sexual slaves. / 幼い女性を性の奴隷にした帝國主義日本軍の?制性を公式に認め、謝罪しなければならない. ]

사용자

ID:
PW:

INDEX
01.게시판
게시판 [71]
02.File Book
File 자료실 [96]
Site Link [14]
개인폴더 [201]
03.Field Book
Altibase [19]
Tibero [30]
MS-SQL [25]
MySQL [43]
DB2 [79]
ORACLE [3054]
PSQL [135]
CUBRID [5]
기타정보 [158]
운영체제 [607]
04.Q/A Book
Q/A [53]
05.방명록
방명록 [54]
레벨업 [37]
구인/구직 [2]

기념일
Search
LINK
+ 가족 Hompy
+ DNSEver
IOTN :: Field Book :: 운영체제

 회원가입

inotifywait / inotify-tools / linux create/delete/modify/move file 모니터
최길호 [LIST]   2023-04-06 10:39:40, 조회 : 24


https://unix.stackexchange.com/questions/323901/how-to-use-inotifywait-to-watch-a-directory-for-creation-of-files-of-a-specific

yum install inotify-tools

## 튜닝
cat /proc/sys/fs/inotify/max_user_watches
8192 [ default ]

cat > /proc/sys/fs/inotify/max_user_watches
200000000

sysctl fs.inotify.max_user_watches
fs.inotify.max_user_watches = 200000000

cat >> /etc/sysctl.conf
fs.inotify.max_user_watches = 200000000

sysctl -p

## 사용 방법

inotifywait /oracle -r -m -e create -e delete -e modify -e moved_from -e moved_to \
--timefmt '%Y/%m/%d\ %H:%M:%S' --format '%T %w %f %e' --exclude '.*(\.ctl|~)' | \
while read datetime dir filename event; do
# if the file does not include .xml then continue the loop
# ! [[ "$filename" =~ \.xml ]] && continue
# otherwise the file includes .xml and we do something with it
echo "$datetime $dir$filename $event"
done

처음 Disk/CPU 사용 높다

2023/04/06 10:49:19 /oracle/product/12.2/base/diag/rdbms/db12/db12/trace/db12_gen0_54336.trc MODIFY
2023/04/06 10:49:19 /oracle/product/12.2/base/diag/rdbms/db12/db12/trace/db12_gen0_54336.trm MODIFY
2023/04/06 10:49:19 /oracle/product/12.2/base/diag/rdbms/db12/db12/trace/db12_gen0_54336.trc MODIFY
2023/04/06 10:49:19 /oracle/product/12.2/base/diag/rdbms/db12/db12/trace/db12_gen0_54336.trm MODIFY
2023/04/06 10:49:19 /oracle/product/12.2/base/diag/rdbms/db12/db12/trace/db12_gen0_54336.trc MODIFY
2023/04/06 10:49:19 /oracle/product/10.2/ogg/dirdat/r1004139 MODIFY
2023/04/06 10:49:20 /oracle/product/12.2/base/diag/rdbms/db12/db12/trace/db12_mmon_54404.trc MODIFY
2023/04/06 10:49:20 /oracle/product/12.2/base/diag/rdbms/db12/db12/trace/db12_mmon_54404.trm MODIFY
2023/04/06 10:49:20 /oracle/product/12.2/base/diag/rdbms/db12/db12/trace/db12_mmon_54404.trc MODIFY
2023/04/06 10:49:20 /oracle/product/12.2/base/diag/rdbms/db12/db12/trace/db12_mmon_54404.trm MODIFY
2023/04/06 10:49:20 /oracle/product/12.2/base/diag/rdbms/db12/db12/trace/db12_mmon_54404.trc MODIFY
2023/04/06 10:49:20 /oracle/product/10.2/ogg/dirdat/r1004139 MODIFY
2023/04/06 10:49:22 /oracle/product/12.2/base/diag/rdbms/db12/db12/trace/db12_gen0_54336.trc MODIFY
2023/04/06 10:49:22 /oracle/product/12.2/base/diag/rdbms/db12/db12/trace/db12_gen0_54336.trm MODIFY
2023/04/06 10:49:22 /oracle/product/12.2/base/diag/rdbms/db12/db12/trace/db12_gen0_54336.trc MODIFY
2023/04/06 10:49:22 /oracle/product/12.2/base/diag/rdbms/db12/db12/trace/db12_gen0_54336.trm MODIFY
2023/04/06 10:49:22 /oracle/product/12.2/base/diag/rdbms/db12/db12/trace/db12_gen0_54336.trc MODIFY
2023/04/06 10:49:23 /oracle/product/12.2/base/diag/rdbms/db12/db12/trace/db12_mmon_54404.trc MODIFY
2023/04/06 10:49:23 /oracle/product/12.2/base/diag/rdbms/db12/db12/trace/db12_mmon_54404.trm MODIFY
2023/04/06 10:49:23 /oracle/product/12.2/base/diag/rdbms/db12/db12/trace/db12_mmon_54404.trc MODIFY
2023/04/06 10:49:23 /oracle/product/12.2/base/diag/rdbms/db12/db12/trace/db12_mmon_54404.trm MODIFY
2023/04/06 10:49:23 /oracle/product/12.2/base/diag/rdbms/db12/db12/trace/db12_mmon_54404.trc MODIFY
2023/04/06 10:49:23 /oracle/product/10.2/ogg/dirdat/r1004139 MODIFY
2023/04/06 10:49:24 /oracle/product/10.2/ogg/dirdat/r1004139 MODIFY
3.239.9.151


  LIST

제목 작성자 작성일 조회
Windows  시스템 오류 86이(가) 생겼습니다. / net use / xcopy / forfiles    최길호 2024/02/15 7
UNIX  strace truss tusc / unix trace    최길호 2024/01/10 26
Solaris  WARNING: Start sector of partition 0 is not aligned to physical block size (4096 bytes) of the disk. This can cause I/O performance degradation.    최길호 2023/12/11 22
Linux  dnf install anydesk    최길호 2023/12/07 23
UNIX  arch filesystem 100% full 예방 / archive log 10개씩 제거 / df find rm    최길호 2023/11/23 35
UNIX  vi 화면 나누기 [ :vs :sp :new Ctrl+w w ]    최길호 2023/11/11 22
UNIX  shell, seq grep sed 연속된 숫자중. 끊어진 숫자들 찾아라.    최길호 2023/11/08 22
Android  ntfy.sh / 푸시 알림 보내기    최길호 2023/09/11 42
Android  Android 앱 자동 종료 방지    최길호 2023/08/25 24
Android  Android 부팅 자동 실행    최길호 2023/08/25 32
Android  mp4 play [ 워치 online play test ]    최길호 2023/07/21 57
Android  BluetoothLog.apk [ Bluetooth 연결,종료,시간,위치 로그 기록 ]     최길호 2023/07/20 18
Android  갤럭시 워치 apk 설치     최길호 2023/07/20 37
Android  org.postgresql.util.PSQLException: Something unusual has occurred    최길호 2023/07/04 15
Android  갤럭시워치5 Android Studio 연결     최길호 2023/07/01 28
Android  콜 매니저 gilho.callmgr.v11.2.apk [ 공부,운동,집중,취침등 전화 오면 방해 될때 사용 하는 앱 ]     최길호 2023/06/29 68
Android  콜 매니저     최길호 2023/04/26 80
Linux  inotifywait / inotify-tools / linux create/delete/modify/move file 모니터    최길호 2023/04/06 24
Android  listview item text 크기, 자간 변경    최길호 2023/03/31 17
Android  list.getChildAt(1).setEnabled(false); / ListView item disable    최길호 2023/03/29 41

    목록보기   다음페이지 1 [2][3][4][5][6][7][8][9][10]..[31]   [다음 10개]
       

Copyright 1999-2024 Zeroboard / skin by 최길호(gilho.kr@gmail.com)
최근 댓글
2016/06/09
201606 추가 grid/runcluvfy.sh...
by 최길호
2016/05/09
lg tab full screen VNCSERVE...
by 최길호
2013/10/17
rsync -avH /data/*

by 최길호
최근 게시물
03/04
[기타정보]
아두이노 wifi web test.
by 최길호
03/01
[기타정보]
아두이노 스마트하우스 V2.
by 최길호
02/28
[ORACLE]
plsql run sql from column / 테....
by 최길호