strace -o output -fp <실행할려고하는 스크립트 pid>
grep "No such file" output > output1
예시)
아래 예시는 ls -al 실행하고 10초 쉬고 다시 ls -al 실행하는 쉡스크립트입니다.
[root@oracle ~]# cat test.sh
#!/bin/sh
ls -al
sleep 10
ls -al
sleep 10
ls -al
sleep 10
ls -al
sleep 10
ls -al
sleep 10
ls -al
sleep 10
ls -al
sleep 10
[root@oracle ~]# ps -ef | grep test.sh | grep -v grep
root 3567 16338 0 15:09 pts/4 00:00:00 /bin/sh ./test.sh
[root@oracle ~]# strace -o output -fp 3567
ctrl + c 를 눌러 중지.
grep "No such file" output > output1
[root@oracle ~]# cat output1
3618 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
3618 open("/usr/share/locale/en_US.UTF-8/LC_TIME/coreutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
3618 open("/usr/share/locale/en_US.utf8/LC_TIME/coreutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
3618 open("/usr/share/locale/en_US/LC_TIME/coreutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
3618 open("/usr/share/locale/en.UTF-8/LC_TIME/coreutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
3618 open("/usr/share/locale/en.utf8/LC_TIME/coreutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
3618 open("/usr/share/locale/en/LC_TIME/coreutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
3618 connect(4, {sa_family=AF_FILE, path="/var/run/nscd/socket"...}, 110) = -1 ENOENT (No such file or directory)
3618 connect(4, {sa_family=AF_FILE, path="/var/run/nscd/socket"...}, 110) = -1 ENOENT (No such file or directory)
3618 connect(4, {sa_family=AF_FILE, path="/var/run/nscd/socket"...}, 110) = -1 ENOENT (No such file or directory)
3618 connect(4, {sa_family=AF_FILE, path="/var/run/nscd/socket"...}, 110) = -1 ENOENT (No such file or directory)
3618 open("/usr/share/locale/en_US.UTF-8/LC_MESSAGES/coreutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
3618 open("/usr/share/locale/en_US.utf8/LC_MESSAGES/coreutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
3618 open("/usr/share/locale/en_US/LC_MESSAGES/coreutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
3618 open("/usr/share/locale/en.UTF-8/LC_MESSAGES/coreutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
3618 open("/usr/share/locale/en.utf8/LC_MESSAGES/coreutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
3618 open("/usr/share/locale/en/LC_MESSAGES/coreutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
3619 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
3620 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
3620 open("/usr/share/locale/en_US.UTF-8/LC_TIME/coreutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
3620 open("/usr/share/locale/en_US.utf8/LC_TIME/coreutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
3620 open("/usr/share/locale/en_US/LC_TIME/coreutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
3620 open("/usr/share/locale/en.UTF-8/LC_TIME/coreutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
3620 open("/usr/share/locale/en.utf8/LC_TIME/coreutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
3620 open("/usr/share/locale/en/LC_TIME/coreutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
3620 connect(4, {sa_family=AF_FILE, path="/var/run/nscd/socket"...}, 110) = -1 ENOENT (No such file or directory)
3620 connect(4, {sa_family=AF_FILE, path="/var/run/nscd/socket"...}, 110) = -1 ENOENT (No such file or directory)
3620 connect(4, {sa_family=AF_FILE, path="/var/run/nscd/socket"...}, 110) = -1 ENOENT (No such file or directory)
3620 connect(4, {sa_family=AF_FILE, path="/var/run/nscd/socket"...}, 110) = -1 ENOENT (No such file or directory)
3620 open("/usr/share/locale/en_US.UTF-8/LC_MESSAGES/coreutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
3620 open("/usr/share/locale/en_US.utf8/LC_MESSAGES/coreutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
3620 open("/usr/share/locale/en_US/LC_MESSAGES/coreutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
3620 open("/usr/share/locale/en.UTF-8/LC_MESSAGES/coreutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
3620 open("/usr/share/locale/en.utf8/LC_MESSAGES/coreutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
3620 open("/usr/share/locale/en/LC_MESSAGES/coreutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
3621 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 5030 | 13년 전 | 784 | ||
| 5029 | 13년 전 | 465 | ||
| 5028 | 13년 전 | 729 | ||
| 5027 | 13년 전 | 1318 | ||
| 5026 | 13년 전 | 548 | ||
| 5025 | 13년 전 | 1369 | ||
| 5024 | 13년 전 | 422 | ||
| 5023 | 13년 전 | 662 | ||
| 5022 | 13년 전 | 426 | ||
| 5021 | 13년 전 | 666 | ||
| 5020 | 13년 전 | 515 | ||
| 5019 | 13년 전 | 857 | ||
| 5018 | 13년 전 | 906 | ||
| 5017 | 13년 전 | 783 | ||
| 5016 | 13년 전 | 2625 | ||
| 5015 | 13년 전 | 414 | ||
| 5014 | 13년 전 | 672 | ||
| 5013 | 13년 전 | 587 | ||
| 5012 |
JacobJeon
|
13년 전 | 1074 | |
| 5011 | 13년 전 | 806 | ||
| 5010 | 13년 전 | 1442 | ||
| 5009 |
JacobJeon
|
13년 전 | 1801 | |
| 5008 | 13년 전 | 1152 | ||
| 5007 | 13년 전 | 3012 | ||
| 5006 |
|
13년 전 | 1307 | |
| 5005 | 13년 전 | 698 | ||
| 5004 | 13년 전 | 2105 | ||
| 5003 | 13년 전 | 2530 | ||
| 5002 | 13년 전 | 387 | ||
| 5001 | 13년 전 | 520 | ||
| 5000 | 13년 전 | 427 | ||
| 4999 | 13년 전 | 526 | ||
| 4998 | 13년 전 | 473 | ||
| 4997 | 13년 전 | 661 | ||
| 4996 | 13년 전 | 1919 | ||
| 4995 | 13년 전 | 393 | ||
| 4994 | 13년 전 | 383 | ||
| 4993 | 13년 전 | 529 | ||
| 4992 | 13년 전 | 503 | ||
| 4991 | 13년 전 | 388 | ||
| 4990 | 13년 전 | 710 | ||
| 4989 | 13년 전 | 653 | ||
| 4988 | 13년 전 | 400 | ||
| 4987 | 13년 전 | 422 | ||
| 4986 | 13년 전 | 1380 | ||
| 4985 | 13년 전 | 664 | ||
| 4984 | 13년 전 | 1046 | ||
| 4983 | 13년 전 | 413 | ||
| 4982 |
쥬드125
|
13년 전 | 1018 | |
| 4981 | 13년 전 | 548 | ||
| 4980 | 13년 전 | 419 | ||
| 4979 | 13년 전 | 694 | ||
| 4978 | 13년 전 | 2182 | ||
| 4977 |
atria
|
13년 전 | 865 | |
| 4976 | 13년 전 | 1531 | ||
| 4975 | 13년 전 | 439 | ||
| 4974 | 13년 전 | 467 | ||
| 4973 | 13년 전 | 704 | ||
| 4972 | 13년 전 | 461 | ||
| 4971 | 13년 전 | 1392 | ||
| 4970 | 13년 전 | 370 | ||
| 4969 | 13년 전 | 423 | ||
| 4968 | 13년 전 | 732 | ||
| 4967 | 13년 전 | 533 | ||
| 4966 | 13년 전 | 445 | ||
| 4965 | 13년 전 | 587 | ||
| 4964 | 13년 전 | 591 | ||
| 4963 | 13년 전 | 428 | ||
| 4962 | 13년 전 | 2251 | ||
| 4961 | 13년 전 | 1350 | ||
| 4960 | 13년 전 | 1232 | ||
| 4959 | 13년 전 | 428 | ||
| 4958 | 13년 전 | 382 | ||
| 4957 | 13년 전 | 472 | ||
| 4956 | 13년 전 | 702 | ||
| 4955 | 13년 전 | 494 | ||
| 4954 | 13년 전 | 1064 | ||
| 4953 | 13년 전 | 1158 | ||
| 4952 | 13년 전 | 752 | ||
| 4951 |
sjsmsrjfflauswnrsmse
|
13년 전 | 879 | |
| 4950 | 13년 전 | 1910 | ||
| 4949 | 13년 전 | 2221 | ||
| 4948 | 13년 전 | 5528 | ||
| 4947 | 13년 전 | 413 | ||
| 4946 | 13년 전 | 851 | ||
| 4945 | 13년 전 | 406 | ||
| 4944 | 13년 전 | 608 | ||
| 4943 |
마당쇠2000
|
13년 전 | 1256 | |
| 4942 |
cula100jak
|
13년 전 | 828 | |
| 4941 | 13년 전 | 474 | ||
| 4940 | 13년 전 | 573 | ||
| 4939 | 13년 전 | 417 | ||
| 4938 | 13년 전 | 567 | ||
| 4937 | 13년 전 | 1502 | ||
| 4936 |
techer
|
13년 전 | 1854 | |
| 4935 | 13년 전 | 725 | ||
| 4934 | 13년 전 | 960 | ||
| 4933 | 13년 전 | 2048 | ||
| 4932 |
kajama78
|
13년 전 | 963 | |
| 4931 | 13년 전 | 985 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기