25개 이상의 토픽을 선택하실 수 없습니다.
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #!/bin/bash
- # This loops the chunker script while the RUN file exists.
- # See chunker for details.
- SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
-
- while [[ -f RUN ]]
- do
- date
- $SCRIPT_DIR/chunker
- result=$?
- if [[ $result -ne 0 ]]
- then
- date
- echo "chunker exited with $result"
- exit $result
- fi
-
- echo "Sleeping..."
- sleep 60
- done
|