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.
 
 

22 rader
384 B

  1. #!/bin/bash
  2. # This loops the chunker script while the RUN file exists.
  3. # See chunker for details.
  4. SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
  5. while [[ -f RUN ]]
  6. do
  7. date
  8. "${SCRIPT_DIR}/chunker"
  9. result="${?}"
  10. if [[ "${result}" -ne 0 ]]
  11. then
  12. date
  13. echo "chunker exited with ${result}"
  14. exit "${result}"
  15. fi
  16. echo "Sleeping..."
  17. sleep 60
  18. done