Du kan inte välja fler än 25 ämnen
Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
|
- #!/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
|