Ignore:
Timestamp:
07/05/12 16:07:24 (12 years ago)
Author:
aclsce
Message:

For quota check function on mercurex9 and titane, added the treatment of the case "more than 100% of the
quota, i.e with a "*" at the end of the quota value"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/libIGCM_sys/libIGCM_sys_mercurex9.ksh

    r689 r696  
    16111611    unit_quota=$( echo $volume_quota | awk '{print(substr($0, length($0), length($0)))}' ) 
    16121612    unit_avail=$( echo $volume_avail | awk '{print(substr($0, length($0), length($0)))}' ) 
     1613 
     1614    if [ "${unit_quota}" = "*" ] ; then 
     1615        IGCM_debug_Print 1 "Please, check your quota of volume on scratch" 
     1616        IGCM_debug_Print 1 "More than 100% of your quota is used" 
     1617        IGCM_debug_Print 1 "Use the ccc_quota command to check" 
     1618        IGCM_debug_Print 1 "You must have more than 10% available to run" 
     1619        IGCM_debug_Exit "Not enough space to run ! STOP HERE" 
     1620        IGCM_debug_Verif_Exit 
     1621    fi 
    16131622 
    16141623    temp_avail=${volume_avail%%${unit_avail}*} 
Note: See TracChangeset for help on using the changeset viewer.