반응형
250x250
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- Spring
- VPN
- codedeploy
- IntelliJ
- chartjs
- codebuild
- codepipeline
- SQL
- kubeflow
- Airflow
- aws
- Spring Error
- java bigdecimal
- Jenkins
- Flux
- 도커
- PostgreSQL
- or some instances in your deployment group are experiencing problems.
- JavaScript
- chart.js
- Kafka
- node
- aws cicd
- bootstrap
- COALESCE
- redis
- AWS CI/CD 구축하기
- codedeploy error
- Python
- docker
Archives
- Today
- Total
목록쉘 스크립트에서 프로세스의 PID 값만 가져오기 (1)
Small Asteroid Blog
쉘 스크립트에서 프로세스의 PID 값만 가져오기
쉘스크립트로 프로세스를 찾아 현재 구동중인 프로세스를 멈추고자 한다. pgrep 로 kill 할 pid를 찾고 kill -9 뒤에 있는 특수기호는 숫자 1 옆에있는 backtick 이라는 부호를 사용하면 된다. ps -ef | grep java ps -ef | grep java|awk '{print $1,$2,$3,$8}' pgrep -f java kill -9 `pgrep -f java` awk : 프로세스 목록에서 pid 값만 가져오는 명령어
클라우드 및 인프라/Linux
2022. 1. 17. 09:38