특정 port(ex:7301) 에 접속한 pid 찾는 명령
pfiles /proc/* 2>/dev/null | nawk ' /^[0-9]*:/ { pid=$0 } /port: 7301$/ { printf("%s %s\n",pid,$0);}'
결과
17929: /Dev/soa/java6/jdk1.6.0_65/bin/amd64/java -Xms256m -Xmx256m -Djava peername: AF_INET6 ::ffff:xxx.xxx.xxx.30 port: 7301
17958: /Dev/soa/java6/jdk1.6.0_65/bin/amd64/java -Xms1024m -Xmx1024m -Dja peername: AF_INET6 ::ffff:xxx.xxx.xxx.30 port: 7301
17986: /Dev/soa/java6/jdk1.6.0_65/bin/amd64/java -Xms1024m -Xmx1024m -Dja peername: AF_INET6 ::ffff:xxx.xxx.xxx.30 port: 7301
18014: /Dev/soa/java6/jdk1.6.0_65/bin/amd64/java -Xms1024m -Xmx1024m -Dja peername: AF_INET6 ::ffff:xxx.xxx.xxx.30 port: 7301
18042: /Dev/soa/java6/jdk1.6.0_65/bin/amd64/java -Xms1024m -Xmx1024m -Dja peername: AF_INET6 ::ffff:xxx.xxx.xxx.30 port: 7301
18070: /Dev/soa/java6/jdk1.6.0_65/bin/amd64/java -Xms1024m -Xmx1024m -Dja peername: AF_INET6 ::ffff:xxx.xxx.xxx.30 port: 7301
18102: /Dev/soa/java6/jdk1.6.0_65/bin/amd64/java -Xms1024m -Xmx1024m -Dja peername: AF_INET6 ::ffff:xxx.xxx.xxx.30 port: 7301
18130: /Dev/soa/java6/jdk1.6.0_65/bin/amd64/java -Xms1024m -Xmx1024m -Dja peername: AF_INET6 ::ffff:xxx.xxx.xxx.30 port: 7301
18158: /Dev/soa/java6/jdk1.6.0_65/bin/amd64/java -Xms1024m -Xmx1024m -Dja peername: AF_INET6 ::ffff:xxx.xxx.xxx.30 port: 7301
18186: /Dev/soa/java6/jdk1.6.0_65/bin/amd64/java -Xms1024m -Xmx1024m -Dja peername: AF_INET6 ::ffff:xxx.xxx.xxx.30 port: 7301
18214: /Dev/soa/java6/jdk1.6.0_65/bin/amd64/java -Xms1024m -Xmx1024m -Dja peername: AF_INET6 ::ffff:xxx.xxx.xxx.30 port: 7301
18244: /Dev/soa/java6/jdk1.6.0_65/bin/amd64/java -Xms1024m -Xmx1024m -Dja peername: AF_INET6 ::ffff:xxx.xxx.xxx.30 port: 7301
18272: /Dev/soa/java6/jdk1.6.0_65/bin/amd64/java -Xms1024m -Xmx1024m -Dja peername: AF_INET6 ::ffff:xxx.xxx.xxx.30 port: 7301
정규표현식, 정규식 (Regular Expression) 링크 (0) | 2014.02.05 |
---|---|
process 의 parameter 등 환경값 확인하는 명령 (0) | 2014.01.29 |
unix sorting multiple keys, 두개 column 으로 sort 구분자 파일 포함 (0) | 2013.11.20 |
유용한 unix 명령 (0) | 2013.10.22 |
Thread dump 생성방법 (kill -3 이외의 방법 (0) | 2012.01.26 |
댓글 영역