가능한 중복 : - 그것은 더 이상 말보다 오래 걸리는 경우 나는 $ 출력을 시간 제한하려면 어떻게bash 스크립트에서 시간 초과하는 방법은 무엇입니까?
for test in `ls Tests`; do for file in `ls FileFolder`; do output=`python devcap $test $file` echo $test $file $output >>result.txt done done
그래서 이것은 내가 뭘하려고 오전입니다 5 초 후에 다음 $ 파일로 이동 하시겠습니까?
stderr도 result.txt로 리디렉션 할 수 있습니까?
http://stackoverflow.com/questions/687948/timeout-a-command-in-bash-without-unnecessary-delay – doublesharp