2.
참고 자료
• <컴퓨터 vs 책> 블로그
• http://jhrogue.blogspot.com/
• OKdevTV 유튜브 방송
• 5분 따라하기 리스트:
• https://www.youtube.com/playlist?list=PLdntWJk2tJPLKNNYBVCxnde2PEB6d
zbSL
• 슬라이드 셰어
• https://www.slideshare.net/jrogue/presentations
• ASCIINEMA
• https://asciinema.org/~jrogue
3.
오늘 소개할 내용
• 배시(bash) 셸 스크립트에서 타임아웃을 걸 수 없을까?
• 실행이 오래 걸리는 작업을 무작정 기다릴 수 없는 상황에서 사람이 스톱워
치 들고 개입을 해야 하나?
• 외부 프로그램(watchdog)이 감시해서 제어하기에는 무겁지 않을까?
4.
bash에서 알고 넘어가야 하는 사항
• $$
• POSIX에서 $$는 원본 프로세스의 프로세스 식별자
• $BASHPID
• 배시 하위 셸 내부의 프로세스 식별자
• &
• 배경 프로세스로 동작
• KILL
• 프로세스에 시그널 전송
• TERM: 종료 시그널(해당 프로세스의 시그널 처리기에서 잡을 수 있음)
• KILL: 강제 종료 시그널(init에서 프로세스 종료)
• 모든 시그널 유형 보기
• $ kill -l
It appears that you have an ad-blocker running. By whitelisting SlideShare on your ad-blocker, you are supporting our community of content creators.
Hate ads?
We've updated our privacy policy.
We’ve updated our privacy policy so that we are compliant with changing global privacy regulations and to provide you with insight into the limited ways in which we use your data.
You can read the details below. By accepting, you agree to the updated privacy policy.