check_log_storage.sh 403 B

1234567891011121314
  1. #!/bin/sh
  2. idx_start=6
  3. idx_end=18
  4. percent=`df -h /Storage|grep Storage|awk '{print $5}'|cut -d '%' -f 1`
  5. while [ $percent -ge 80 -a $idx_start -ge 1 ]
  6. do
  7. echo $idx_start $idx_end
  8. /usr/bin/run_log_clear.sh $idx_start $idx_end
  9. percent=`df -h /Storage|grep Storage|awk '{print $5}'|cut -d '%' -f 1`
  10. idx_start=$(( idx_start-1 ))
  11. idx_end=$(( idx_end-1 ))
  12. sync
  13. done