Changeset 729


Ignore:
Timestamp:
10/18/12 15:53:18 (12 years ago)
Author:
sdipsl
Message:
  • special for O. Boucher. cp command says copy failed "permission denied" ; error code = 1 ; destination file exist after the copy and not before. ?!*% Strange
File:
1 edited

Legend:

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

    r725 r729  
    13311331          IGCM_debug_Print 2 "IGCM_sys_Put_Out : cp failed error code ${status} ${i}/${NB_ESSAI}" 
    13321332          IGCM_debug_Print 2 "IGCM_sys_Put_Out : sleep ${DELAI} seconds and try again." 
     1333          if [ -f $2 ] ; then 
     1334            if [ "X$( diff $1 $2 )" = X ] ; then 
     1335              IGCM_debug_Print 2 "$1 and $2 are the same file" 
     1336              IGCM_debug_Print 2 "Cp gave an error but the file has been copied properly!" 
     1337              break 
     1338            else 
     1339              IGCM_debug_Print 2 "$1 and $2 are not the same file, we continue to try" 
     1340            fi 
     1341          fi 
    13331342          sleep $DELAI 
    13341343        else 
Note: See TracChangeset for help on using the changeset viewer.