Ignore:
Timestamp:
08/30/13 12:26:30 (11 years ago)
Author:
mafoipsl
Message:

On ada, consolidation of IGCM_sys_check_quota. Exemple with : 15.69% used.

File:
1 edited

Legend:

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

    r944 r945  
    19761976 
    19771977  # Check of the volume 
    1978   volume_quota=$(quota_u -w | grep 'Quota soft' | gawk '{print $5}') 
     1978  volume_quota=$(quota_u -w 2>/dev/null| grep 'Quota soft' | gawk '{print $5}') 
    19791979  if [ ! X${volume_quota} = X ] ; then 
    19801980    quota_volume=${volume_quota%%\%} 
    19811981#    echo $quota_volume 
    1982     if [ ${quota_volume} -ge ${limit_quota} ] ; then 
     1982    if [ $(echo "${quota_volume} > ${limit_quota}" | bc) -eq 1 ] 
    19831983      IGCM_debug_Print 1 "Please, check your quota of volume on workgpfs" 
    19841984      IGCM_debug_Print 1 "${quota_volume}% of your quota is used" 
Note: See TracChangeset for help on using the changeset viewer.