알파인 리눅스 timeout

1 개요[ | ]

알파인 리눅스 timeout
BusyBox timeout
bash-4.4# timeout sleep 8
bash-4.4# echo $?
0
bash-4.4# timeout sleep 12
Terminated
bash-4.4# echo $?
143
bash-4.4# timeout -t 3 sleep 1
bash-4.4# echo $?
0
bash-4.4# timeout -t 3 sleep 5
Terminated
bash-4.4# echo $?
143

2 help[ | ]

bash-4.4# timeout --help
BusyBox v1.28.4 (2018-12-06 15:13:21 UTC) multi-call binary.

Usage: timeout [-t SECS] [-s SIG] PROG ARGS

Runs PROG. Sends SIG to it if it is not gone in SECS seconds.
Defaults: SECS: 10, SIG: TERM.

3 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}