Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

22 строки
366 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