Changeset 668 for trunk


Ignore:
Timestamp:
05/14/12 12:47:16 (12 years ago)
Author:
sdipsl
Message:
  • Adjustement to bypass some curie filesystem issue
File:
1 edited

Legend:

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

    r667 r668  
    11841184 
    11851185  # number of tentative 
    1186   NB_ESSAI=10 
     1186  NB_ESSAI=3 
    11871187  # time delay between tentative 
    1188   DELAI=10 
     1188  DELAI=2 
    11891189 
    11901190  if [ $DRYRUN = 0 ]; then 
     
    13231323 
    13241324  # number of tentative 
    1325   NB_ESSAI=10 
     1325  NB_ESSAI=3 
    13261326  # time delay between tentative 
    1327   DELAI=10 
     1327  DELAI=2 
    13281328 
    13291329  if [ $DRYRUN -le 2 ]; then 
     
    13511351    #    fi 
    13521352    #fi 
    1353  
    1354     # test if the (first) file is present in the old computation : 
    1355     IGCM_sys_TestFileArchive ${dm_liste[0]} 
    1356     RET=$? 
    1357     if [ ${RET} -gt 0 ] ; then 
    1358       echo "IGCM_sys_Get, ERROR : regular file ${dm_liste[0]} DOES NOT EXIST ." 
    1359       IGCM_debug_Exit "IGCM_sys_Get" 
    1360     fi 
    13611353 
    13621354    ccc_hsm get ${dm_liste[*]} > out_rsync 2>&1 
     
    13951387        local_file=$( basename ${target} ) 
    13961388        (( i = 0 )) 
    1397         while [ $i -lt $NB_ESSAI ] ; do 
    1398           \cp ${target} ${DEST}/${local_file} >> out_rsync 2>&1 
    1399           status=$? 
    1400           if [ ${status} -gt 0 ]; then 
    1401             IGCM_debug_Print 2 "IGCM_sys_Get : cp failed ${i}/${NB_ESSAI}" 
    1402             IGCM_debug_Print 2 "IGCM_sys_Get : sleep ${DELAI} seconds and try again." 
    1403             sleep $DELAI 
    1404           else 
    1405             break 
    1406           fi 
    1407           (( i = i + 1 )) 
    1408         done 
    1409         (( RET = RET + status )) 
     1389        # test if the target file is present before the loop 
     1390        IGCM_sys_TestFileArchive ${target} 
     1391        RET=$? 
     1392        if [ ${RET} -gt 0 ] ; then 
     1393          echo "IGCM_sys_Get, ERROR : regular file ${dm_liste[0]} DOES NOT EXIST ." 
     1394          IGCM_debug_Exit "IGCM_sys_Get" 
     1395        else 
     1396          while [ $i -lt $NB_ESSAI ] ; do 
     1397            \cp ${target} ${DEST}/${local_file} >> out_rsync 2>&1 
     1398            status=$? 
     1399            if [ ${status} -gt 0 ]; then 
     1400              IGCM_debug_Print 2 "IGCM_sys_Get : cp failed ${i}/${NB_ESSAI}" 
     1401              IGCM_debug_Print 2 "IGCM_sys_Get : sleep ${DELAI} seconds and try again." 
     1402              sleep $DELAI 
     1403            else 
     1404              break 
     1405            fi 
     1406            (( i = i + 1 )) 
     1407          done 
     1408          (( RET = RET + status )) 
     1409        fi 
    14101410      done 
    14111411    else 
Note: See TracChangeset for help on using the changeset viewer.