- Timestamp:
- 05/14/12 12:47:16 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libIGCM/libIGCM_sys/libIGCM_sys_curie.ksh
r667 r668 1184 1184 1185 1185 # number of tentative 1186 NB_ESSAI= 101186 NB_ESSAI=3 1187 1187 # time delay between tentative 1188 DELAI= 101188 DELAI=2 1189 1189 1190 1190 if [ $DRYRUN = 0 ]; then … … 1323 1323 1324 1324 # number of tentative 1325 NB_ESSAI= 101325 NB_ESSAI=3 1326 1326 # time delay between tentative 1327 DELAI= 101327 DELAI=2 1328 1328 1329 1329 if [ $DRYRUN -le 2 ]; then … … 1351 1351 # fi 1352 1352 #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 ] ; then1358 echo "IGCM_sys_Get, ERROR : regular file ${dm_liste[0]} DOES NOT EXIST ."1359 IGCM_debug_Exit "IGCM_sys_Get"1360 fi1361 1353 1362 1354 ccc_hsm get ${dm_liste[*]} > out_rsync 2>&1 … … 1395 1387 local_file=$( basename ${target} ) 1396 1388 (( 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 1410 1410 done 1411 1411 else
Note: See TracChangeset
for help on using the changeset viewer.