cicle.sh 204 B

1234567891011121314151617
  1. #!/bin/env bash
  2. TIME_SLEEP=$(expr 5 \* 60)
  3. while true; do
  4. sh start.sh
  5. RETN="$?"
  6. if [[ $RETN != "0" ]]; then
  7. ./transfer.sh "Error return $RETN"
  8. fi
  9. sleep $TIME_SLEEP
  10. done