쉘 스크립트에서 다음 로직으로 넘어가기 전에 잠시 실행을 멈추고 싶을때 다음과 같이 하면 된다.

 

[ shell script 간편 sleep 포맷 ]

 

sleep .5 # Waits 0.5 second.

sleep 5  # Waits 5 seconds.

sleep 5s # Waits 5 seconds.

sleep 5m # Waits 5 minutes.

sleep 5h # Waits 5 hours.

sleep 5d # Waits 5 days.


출처: https://brocess.tistory.com/84 [행복한디벨로퍼]

 

'Infra Structure > Linux' 카테고리의 다른 글

포트(port) 리다이렉트 (포트포워딩)  (0) 2020.01.09
쉘(shell) 실행 파일  (0) 2019.11.13
[Linux] bash 설정파일 (bash_profile)  (0) 2019.11.13
[Linux] which 명령어  (0) 2019.11.12
리눅스 현재 사용하는 쉘 확인  (0) 2015.01.04

+ Recent posts