Ignore:
Timestamp:
08/23/13 11:38:14 (11 years ago)
Author:
sdipsl
Message:

cleanup.
replace out_rsync by /tmp/out_command.$$

File:
1 edited

Legend:

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

    r936 r938  
    720720  mkdir -p ${HOME}/MIRROR/${PATHlibIGCM} 
    721721 
    722   echo ${RSYNC} ${RSYNC_opt} ${libIGCM} ${HOME}/MIRROR/${PATHlibIGCM} > out_rsync 2>&1 
    723   ${RSYNC} ${RSYNC_opt} ${libIGCM} ${HOME}/MIRROR/${PATHlibIGCM} >> out_rsync 2>&1 
     722  echo ${RSYNC} ${RSYNC_opt} ${libIGCM} ${HOME}/MIRROR/${PATHlibIGCM} > /tmp/out_command.$$ 2>&1 
     723  ${RSYNC} ${RSYNC_opt} ${libIGCM} ${HOME}/MIRROR/${PATHlibIGCM} >> /tmp/out_command.$$ 2>&1 
    724724  status=$? 
    725725 
    726726  if [ ${status} -gt 0 ] ; then 
    727727    echo "IGCM_sys_Mirror_libIGCM Warning : no libIGCM on frontend." 
    728     cat out_rsync 
     728    cat /tmp/out_command.$$ 
    729729  fi 
    730730  IGCM_debug_PopStack "IGCM_sys_Mirror_libIGCM" 
     
    744744  typeset status 
    745745 
    746   echo cp $@ > out_rsync 2>&1 
    747   \cp $@ >> out_rsync 2>&1 
     746  echo cp $@ > /tmp/out_command.$$ 2>&1 
     747  \cp $@ >> /tmp/out_command.$$ 2>&1 
    748748  status=$? 
    749749 
    750750  if [ ${status} -gt 0 ] ; then 
    751751    echo "IGCM_sys_Cp : error code ${status}" 
    752     cat out_rsync 
     752    cat /tmp/out_command.$$ 
    753753    IGCM_debug_Exit "IGCM_sys_Cp" 
    754754  else 
    755     \rm out_rsync 
     755    \rm /tmp/out_command.$$ 
    756756  fi 
    757757  IGCM_debug_PopStack "IGCM_sys_Cp" 
     
    771771  typeset status 
    772772 
    773   echo rm $@ > out_rsync 2>&1 
    774   \rm $@ >> out_rsync 2>&1 
     773  echo rm $@ > /tmp/out_command.$$ 2>&1 
     774  \rm $@ >> /tmp/out_command.$$ 2>&1 
    775775  status=$? 
    776776 
    777777  if [ ${status} -gt 0 ] ; then 
    778778    echo "IGCM_sys_Rm : error code ${status}" 
    779     cat out_rsync 
     779    cat /tmp/out_command.$$ 
    780780    IGCM_debug_Exit "IGCM_sys_Rm" 
    781781  else 
    782     \rm out_rsync 
     782    \rm /tmp/out_command.$$ 
    783783  fi 
    784784  IGCM_debug_PopStack "IGCM_sys_Rm" 
     
    816816    typeset status 
    817817 
    818     echo mv $@ > out_rsync 2>&1 
    819     \mv $@ >> out_rsync 2>&1 
     818    echo mv $@ > /tmp/out_command.$$ 2>&1 
     819    \mv $@ >> /tmp/out_command.$$ 2>&1 
    820820    status=$? 
    821821 
    822822    if [ ${status} -gt 0 ] ; then 
    823823      echo "IGCM_sys_Mv : error code ${status}" 
    824       cat out_rsync 
     824      cat /tmp/out_command.$$ 
    825825      IGCM_debug_Exit "IGCM_sys_Mv" 
    826826    else 
    827       \rm out_rsync 
     827      \rm /tmp/out_command.$$ 
    828828    fi 
    829829  fi 
     
    855855    # 
    856856    #USUAL WAY 
    857     \cp -r $1 $2 > out_rsync 2>&1 
     857    \cp -r $1 $2 > /tmp/out_command.$$ 2>&1 
    858858    status=$? 
    859859 
    860860    if [ ${status} -gt 0 ] ; then 
    861861      IGCM_debug_Print 2 "IGCM_sys_Put_Dir : cp failed error code ${status}" 
    862       cat out_rsync 
     862      cat /tmp/out_command.$$ 
    863863      IGCM_debug_Exit "IGCM_sys_Put_Dir" 
    864864    else 
    865       \rm out_rsync 
     865      \rm /tmp/out_command.$$ 
    866866    fi 
    867867  fi 
     
    889889 
    890890    #USUAL WAY 
    891     \cp -ur $1 $2 > out_rsync 2>&1 
     891    \cp -ur $1 $2 > /tmp/out_command.$$ 2>&1 
    892892    status=$? 
    893893 
    894894    if [ ${status} -gt 0 ] ; then 
    895895      IGCM_debug_Print 2 "IGCM_sys_Get_Dir : cp failed error code ${status}" 
    896       cat out_rsync 
     896      cat /tmp/out_command.$$ 
    897897      IGCM_debug_Exit "IGCM_sys_Get_Dir" 
    898898    else 
    899       \rm out_rsync 
     899      \rm /tmp/out_command.$$ 
    900900    fi 
    901901  fi 
     
    928928    i=0 
    929929    while [ $i -lt $NB_ESSAI ] ; do 
    930       \cp -urL $1 $2 > out_rsync 2>&1 
     930      \cp -urL $1 $2 > /tmp/out_command.$$ 2>&1 
    931931      status=$? 
    932932      if [ ${status} -gt 0 ]; then 
     
    942942    if [ ${status} -gt 0 ] ; then 
    943943      echo "IGCM_sys_Get_Master : error." 
    944       cat out_rsync 
     944      cat /tmp/out_command.$$ 
    945945      IGCM_debug_Exit "IGCM_sys_Get_Master" 
    946946    else 
    947       \rm out_rsync 
     947      \rm /tmp/out_command.$$ 
    948948    fi 
    949949  fi 
     
    984984    # 
    985985    #USUAL WAY 
    986     \cp $1 $2 > out_rsync 2>&1 
     986    \cp $1 $2 > /tmp/out_command.$$ 2>&1 
    987987    status=$? 
    988988 
    989989#       #RSYNC WITH NETWORK SSH CALL 
    990 #       echo ${RSYNC} ${RSYNC_opt} -e ssh ${RUN_DIR}/$1 ${STOREHOST}:${2} > out_rsync 2>&1 
    991 #       ${RSYNC} ${RSYNC_opt} -e ssh ${RUN_DIR}/$1 ${STOREHOST}:${2} >> out_rsync 2>&1 
     990#       echo ${RSYNC} ${RSYNC_opt} -e ssh ${RUN_DIR}/$1 ${STOREHOST}:${2} > /tmp/out_command.$$ 2>&1 
     991#       ${RSYNC} ${RSYNC_opt} -e ssh ${RUN_DIR}/$1 ${STOREHOST}:${2} >> /tmp/out_command.$$ 2>&1 
    992992 
    993993#       #RSYNC WITH NFS USE 
    994 #       echo ${RSYNC} ${RSYNC_opt} ${RUN_DIR}/$1 ${2} > out_rsync 2>&1 
    995 #       ${RSYNC} ${RSYNC_opt} ${RUN_DIR}/$1 ${2} >> out_rsync 2>&1 
     994#       echo ${RSYNC} ${RSYNC_opt} ${RUN_DIR}/$1 ${2} > /tmp/out_command.$$ 2>&1 
     995#       ${RSYNC} ${RSYNC_opt} ${RUN_DIR}/$1 ${2} >> /tmp/out_command.$$ 2>&1 
    996996 
    997997#       status=$? 
    998998#       IGCM_sys_Rsync_out $status 
    999999 
    1000 #       ${libIGCM}/libIGCM_sys/IGCM_analyse_rsync_out.awk out_rsync 
     1000#       ${libIGCM}/libIGCM_sys/IGCM_analyse_rsync_out.awk /tmp/out_command.$$ 
    10011001#       (( status=status+$? )) 
    10021002 
    10031003    if [ ${status} -gt 0 ] ; then 
    10041004      echo "IGCM_sys_Put_Rest : cp failed error code ${status}" 
    1005       cat out_rsync 
     1005      cat /tmp/out_command.$$ 
    10061006      IGCM_debug_Exit "IGCM_sys_Put_Rest" 
    10071007    else 
    1008       \rm out_rsync 
     1008      \rm /tmp/out_command.$$ 
    10091009    fi 
    10101010  fi 
     
    10371037    # 
    10381038    # USUAL WAY 
    1039     \cp $1 $2 > out_rsync 2>&1 
     1039    \cp $1 $2 > /tmp/out_command.$$ 2>&1 
    10401040    status=$? 
    10411041 
     
    10441044      [ -f ${2} ] && ls -l ${2} 
    10451045      [ -f ${2}/${1} ] && ls -l ${2}/${1} 
    1046       cat out_rsync 
     1046      cat /tmp/out_command.$$ 
    10471047      IGCM_debug_Exit "IGCM_sys_PutBuffer_Rest" 
    10481048    else 
    1049       \rm out_rsync 
     1049      \rm /tmp/out_command.$$ 
    10501050    fi 
    10511051  fi 
     
    10931093    # 
    10941094 
    1095     echo ${RSYNC} ${RSYNC_opt} $1 $2 > out_rsync 2>&1 
    1096     ${RSYNC} ${RSYNC_opt} $1 $2 >> out_rsync 2>&1 
     1095    echo ${RSYNC} ${RSYNC_opt} $1 $2 > /tmp/out_command.$$ 2>&1 
     1096    ${RSYNC} ${RSYNC_opt} $1 $2 >> /tmp/out_command.$$ 2>&1 
    10971097    status=$? 
    10981098    IGCM_sys_Rsync_out $status 
    10991099 
    1100     ${libIGCM}/libIGCM_sys/IGCM_analyse_rsync_out.awk out_rsync 
     1100    ${libIGCM}/libIGCM_sys/IGCM_analyse_rsync_out.awk /tmp/out_command.$$ 
    11011101    (( status=status+$? )) 
    11021102 
    11031103    if [ ${status} -gt 0 ] ; then 
    11041104      IGCM_debug_Print 2 "IGCM_sys_Put_Out : rsync failed error code ${status}" 
    1105       cat out_rsync 
     1105      cat /tmp/out_command.$$ 
    11061106      IGCM_debug_Exit "IGCM_sys_Put_Out" 
    11071107    else 
    1108       \rm out_rsync 
     1108      \rm /tmp/out_command.$$ 
    11091109    fi 
    11101110  fi 
     
    11641164      while [ $i -lt $NB_ESSAI ] ; do 
    11651165        # USUAL WAY 
    1166         \cp $1 $2 > out_rsync 2>&1 
     1166        \cp $1 $2 > /tmp/out_command.$$ 2>&1 
    11671167        status=$? 
    11681168        if [ ${status} -gt 0 ]; then 
     
    11831183      [ -f ${2} ] && ls -l ${2} 
    11841184      [ -f ${2}/${1} ] && ls -l ${2}/${1} 
    1185       cat out_rsync 
     1185      cat /tmp/out_command.$$ 
    11861186      IGCM_debug_Exit "IGCM_sys_PutBuffer_Out" 
    11871187    else 
     
    11941194      fi 
    11951195 
    1196       \rm out_rsync 
     1196      \rm /tmp/out_command.$$ 
    11971197    fi 
    11981198  fi 
     
    12321232 
    12331233    #USUAL WAY 
    1234     \cp ${dm_liste[*]} ${DEST} > out_rsync 2>&1 
     1234    \cp ${dm_liste[*]} ${DEST} > /tmp/out_command.$$ 2>&1 
    12351235    status=$? 
    12361236 
    12371237    if [ ${status} -gt 0 ] ; then 
    12381238      IGCM_debug_Print 2 "IGCM_sys_Get : cp failed error code ${status}" 
    1239       cat out_rsync 
     1239      cat /tmp/out_command.$$ 
    12401240      IGCM_debug_Exit "IGCM_sys_Get" 
    12411241    else 
    1242       \rm out_rsync 
     1242      \rm /tmp/out_command.$$ 
    12431243    fi 
    12441244  fi 
     
    12801280        i=0 
    12811281        while [ $i -lt $NB_ESSAI ] ; do 
    1282           \cp ${target} ${DEST}/${local_file} >> out_rsync 2>&1 
     1282          \cp ${target} ${DEST}/${local_file} >> /tmp/out_command.$$ 2>&1 
    12831283          status=$? 
    12841284          if [ ${status} -gt 0 ]; then 
     
    12931293        if [ ${status} -gt 0 ] ; then 
    12941294          echo "IGCM_sys_Get : error" 
    1295           cat out_rsync 
    1296           \rm out_rsync 
     1295          cat /tmp/out_command.$$ 
     1296          \rm /tmp/out_command.$$ 
    12971297          IGCM_debug_Exit "IGCM_sys_GetBuffer" 
    12981298        else 
    1299           \rm out_rsync 
     1299          \rm /tmp/out_command.$$ 
    13001300        fi 
    13011301      done 
     
    13031303      i=0 
    13041304      while [ $i -lt $NB_ESSAI ] ; do 
    1305         \cp ${buf_liste} ${DEST} >> out_rsync 2>&1 
     1305        \cp ${buf_liste} ${DEST} >> /tmp/out_command.$$ 2>&1 
    13061306        status=$? 
    13071307        if [ ${status} -gt 0 ]; then 
     
    13161316      if [ ${status} -gt 0 ] ; then 
    13171317        echo "IGCM_sys_Get : error" 
    1318         cat out_rsync 
    1319         \rm out_rsync 
     1318        cat /tmp/out_command.$$ 
     1319        \rm /tmp/out_command.$$ 
    13201320        IGCM_debug_Exit "IGCM_sys_GetBuffer" 
    13211321      else 
    1322         \rm out_rsync 
     1322        \rm /tmp/out_command.$$ 
    13231323      fi 
    13241324    fi 
     
    14211421  i=0 
    14221422  while [ $i -lt $NB_ESSAI ] ; do 
    1423     rebuild -f -o $@ > out_rsync 2>&1 
     1423    rebuild -f -o $@ > /tmp/out_command.$$ 2>&1 
    14241424    status=$? 
    14251425    if [ ${status} -gt 0 ] ; then 
    14261426      IGCM_debug_Print 2 "IGCM_sys_rebuild : error code ${status}" 
    1427       cat out_rsync 
    1428       \rm out_rsync 
     1427      cat /tmp/out_command.$$ 
     1428      \rm /tmp/out_command.$$ 
    14291429      IGCM_debug_Print 2 "IGCM_sys_rebuild : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    14301430      firstArg=${1} 
     
    14321432      sleep $DELAI 
    14331433    else 
    1434       \rm out_rsync 
     1434      \rm /tmp/out_command.$$ 
    14351435      break 
    14361436    fi 
     
    19401940  i=0 
    19411941  while [ $i -lt $NB_ESSAI ] ; do 
    1942     ncap2 "$@" > out_rsync 2>&1 
     1942    ncap2 "$@" > /tmp/out_command.$$ 2>&1 
    19431943    status=$? 
    19441944    if [ ${status} -gt 0 ] ; then 
    19451945      IGCM_debug_Print 2 "IGCM_sys_ncap2 : error code ${status}" 
    1946       cat out_rsync 
    1947       \rm out_rsync 
     1946      cat /tmp/out_command.$$ 
     1947      \rm /tmp/out_command.$$ 
    19481948      IGCM_debug_Print 2 "IGCM_sys_ncap2 : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    19491949      sleep $DELAI 
    19501950    else 
    1951       \rm out_rsync 
     1951      \rm /tmp/out_command.$$ 
    19521952      break 
    19531953    fi 
     
    19821982  i=0 
    19831983  while [ $i -lt $NB_ESSAI ] ; do 
    1984     ncatted "$@" > out_rsync 2>&1 
     1984    ncatted "$@" > /tmp/out_command.$$ 2>&1 
    19851985    status=$? 
    19861986    if [ ${status} -gt 0 ] ; then 
    19871987      IGCM_debug_Print 2 "IGCM_sys_ncatted : error code ${status}" 
    1988       cat out_rsync 
    1989       \rm out_rsync 
     1988      cat /tmp/out_command.$$ 
     1989      \rm /tmp/out_command.$$ 
    19901990      IGCM_debug_Print 2 "IGCM_sys_ncatted : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    19911991      sleep $DELAI 
    19921992    else 
    1993       \rm out_rsync 
     1993      \rm /tmp/out_command.$$ 
    19941994      break 
    19951995    fi 
     
    20242024  i=0 
    20252025  while [ $i -lt $NB_ESSAI ] ; do 
    2026     ncbo $@ > out_rsync 2>&1 
     2026    ncbo $@ > /tmp/out_command.$$ 2>&1 
    20272027    status=$? 
    20282028    if [ ${status} -gt 0 ] ; then 
    20292029      IGCM_debug_Print 2 "IGCM_sys_ncbo : error code ${status}" 
    2030       cat out_rsync 
    2031       \rm out_rsync 
     2030      cat /tmp/out_command.$$ 
     2031      \rm /tmp/out_command.$$ 
    20322032      IGCM_debug_Print 2 "IGCM_sys_ncbo : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    20332033      sleep $DELAI 
    20342034    else 
    2035       \rm out_rsync 
     2035      \rm /tmp/out_command.$$ 
    20362036      break 
    20372037    fi 
     
    20662066  i=0 
    20672067  while [ $i -lt $NB_ESSAI ] ; do 
    2068     ncdiff $@ > out_rsync 2>&1 
     2068    ncdiff $@ > /tmp/out_command.$$ 2>&1 
    20692069    status=$? 
    20702070    if [ ${status} -gt 0 ] ; then 
    20712071      IGCM_debug_Print 2 "IGCM_sys_ncdiff : error code ${status}" 
    2072       cat out_rsync 
    2073       \rm out_rsync 
     2072      cat /tmp/out_command.$$ 
     2073      \rm /tmp/out_command.$$ 
    20742074      IGCM_debug_Print 2 "IGCM_sys_ncdiff : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    20752075      sleep $DELAI 
    20762076    else 
    2077       \rm out_rsync 
     2077      \rm /tmp/out_command.$$ 
    20782078      break 
    20792079    fi 
     
    21082108  i=0 
    21092109  while [ $i -lt $NB_ESSAI ] ; do 
    2110     ncea $@ > out_rsync 2>&1 
     2110    ncea $@ > /tmp/out_command.$$ 2>&1 
    21112111    status=$? 
    21122112    if [ ${status} -gt 0 ] ; then 
    21132113      IGCM_debug_Print 2 "IGCM_sys_ncea : error code ${status}" 
    2114       cat out_rsync 
    2115       \rm out_rsync 
     2114      cat /tmp/out_command.$$ 
     2115      \rm /tmp/out_command.$$ 
    21162116      IGCM_debug_Print 2 "IGCM_sys_ncea : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    21172117      sleep $DELAI 
    21182118    else 
    2119       \rm out_rsync 
     2119      \rm /tmp/out_command.$$ 
    21202120      break 
    21212121    fi 
     
    21502150  i=0 
    21512151  while [ $i -lt $NB_ESSAI ] ; do 
    2152     ncecat $@ > out_rsync 2>&1 
     2152    ncecat $@ > /tmp/out_command.$$ 2>&1 
    21532153    status=$? 
    21542154    if [ ${status} -gt 0 ] ; then 
    21552155      IGCM_debug_Print 2 "IGCM_sys_ncecat : error code ${status}" 
    2156       cat out_rsync 
    2157       \rm out_rsync 
     2156      cat /tmp/out_command.$$ 
     2157      \rm /tmp/out_command.$$ 
    21582158      IGCM_debug_Print 2 "IGCM_sys_ncecat : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    21592159      sleep $DELAI 
    21602160    else 
    2161       \rm out_rsync 
     2161      \rm /tmp/out_command.$$ 
    21622162      break 
    21632163    fi 
     
    21922192  i=0 
    21932193  while [ $i -lt $NB_ESSAI ] ; do 
    2194     ncflint $@ > out_rsync 2>&1 
     2194    ncflint $@ > /tmp/out_command.$$ 2>&1 
    21952195    status=$? 
    21962196    if [ ${status} -gt 0 ] ; then 
    21972197      IGCM_debug_Print 2 "IGCM_sys_ncflint : error code ${status}" 
    2198       cat out_rsync 
    2199       \rm out_rsync 
     2198      cat /tmp/out_command.$$ 
     2199      \rm /tmp/out_command.$$ 
    22002200      IGCM_debug_Print 2 "IGCM_sys_ncflint : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    22012201      sleep $DELAI 
    22022202    else 
    2203       \rm out_rsync 
     2203      \rm /tmp/out_command.$$ 
    22042204      break 
    22052205    fi 
     
    22342234  i=0 
    22352235  while [ $i -lt $NB_ESSAI ] ; do 
    2236     ncks $@ > out_rsync 2>&1 
     2236    ncks $@ > /tmp/out_command.$$ 2>&1 
    22372237    status=$? 
    22382238    if [ ${status} -gt 0 ] ; then 
    22392239      IGCM_debug_Print 2 "IGCM_sys_ncks : error code ${status}" 
    2240       cat out_rsync 
    2241       \rm out_rsync 
     2240      cat /tmp/out_command.$$ 
     2241      \rm /tmp/out_command.$$ 
    22422242      IGCM_debug_Print 2 "IGCM_sys_ncks : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    22432243      sleep $DELAI 
    22442244    else 
    2245       \rm out_rsync 
     2245      \rm /tmp/out_command.$$ 
    22462246      break 
    22472247    fi 
     
    22762276  i=0 
    22772277  while [ $i -lt $NB_ESSAI ] ; do 
    2278     ncpdq $@ > out_rsync 2>&1 
     2278    ncpdq $@ > /tmp/out_command.$$ 2>&1 
    22792279    status=$? 
    22802280    if [ ${status} -gt 0 ] ; then 
    22812281      IGCM_debug_Print 2 "IGCM_sys_ncpdq : error code ${status}" 
    2282       cat out_rsync 
    2283       \rm out_rsync 
     2282      cat /tmp/out_command.$$ 
     2283      \rm /tmp/out_command.$$ 
    22842284      IGCM_debug_Print 2 "IGCM_sys_ncpdq : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    22852285      sleep $DELAI 
    22862286    else 
    2287       \rm out_rsync 
     2287      \rm /tmp/out_command.$$ 
    22882288      break 
    22892289    fi 
     
    23182318  i=0 
    23192319  while [ $i -lt $NB_ESSAI ] ; do 
    2320     ncra $@ > out_rsync 2>&1 
     2320    ncra $@ > /tmp/out_command.$$ 2>&1 
    23212321    status=$? 
    23222322    if [ ${status} -gt 0 ] ; then 
    23232323      IGCM_debug_Print 2 "IGCM_sys_ncra : error code ${status}" 
    2324       cat out_rsync 
    2325       \rm out_rsync 
     2324      cat /tmp/out_command.$$ 
     2325      \rm /tmp/out_command.$$ 
    23262326      IGCM_debug_Print 2 "IGCM_sys_ncra : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    23272327      sleep $DELAI 
    23282328    else 
    2329       \rm out_rsync 
     2329      \rm /tmp/out_command.$$ 
    23302330      break 
    23312331    fi 
     
    23602360  i=0 
    23612361  while [ $i -lt $NB_ESSAI ] ; do 
    2362     ncrcat $@ > out_rsync 2>&1 
     2362    ncrcat $@ > /tmp/out_command.$$ 2>&1 
    23632363    status=$? 
    23642364    if [ ${status} -gt 0 ] ; then 
    23652365      IGCM_debug_Print 2 "IGCM_sys_ncrcat : error code ${status}" 
    2366       cat out_rsync 
    2367       \rm out_rsync 
     2366      cat /tmp/out_command.$$ 
     2367      \rm /tmp/out_command.$$ 
    23682368      IGCM_debug_Print 2 "IGCM_sys_ncrcat : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    23692369      sleep $DELAI 
    2370     elif [ ! "X$( grep "WARNING Intra-file non-monotonicity" out_rsync )" = "X" ] ; then 
     2370    elif [ ! "X$( grep "WARNING Intra-file non-monotonicity" /tmp/out_command.$$ )" = "X" ] ; then 
    23712371      IGCM_debug_Print 2 "IGCM_sys_ncrcat : WARNING Intra-file non-monotonicity" 
    2372       cat out_rsync 
     2372      cat /tmp/out_command.$$ 
    23732373      # remove files having corrupted time axis 
    23742374      eval lastArg=\${$#} 
    23752375      IGCM_debug_Print 2 "IGCM_sys_ncrcat : Delete ${lastArg}" 
    23762376      \rm ${lastArg} 
    2377       \rm out_rsync 
     2377      \rm /tmp/out_command.$$ 
    23782378      IGCM_debug_Print 2 "IGCM_sys_ncrcat : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    23792379      sleep $DELAI 
    23802380    else 
    2381       \rm out_rsync 
     2381      \rm /tmp/out_command.$$ 
    23822382      break 
    23832383    fi 
     
    24122412  i=0 
    24132413  while [ $i -lt $NB_ESSAI ] ; do 
    2414     ncrename $@ > out_rsync 2>&1 
     2414    ncrename $@ > /tmp/out_command.$$ 2>&1 
    24152415    status=$? 
    24162416    if [ ${status} -gt 0 ] ; then 
    24172417      IGCM_debug_Print 2 "IGCM_sys_ncrename : error code ${status}" 
    2418       cat out_rsync 
    2419       \rm out_rsync 
     2418      cat /tmp/out_command.$$ 
     2419      \rm /tmp/out_command.$$ 
    24202420      IGCM_debug_Print 2 "IGCM_sys_ncrename : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    24212421      sleep $DELAI 
    24222422    else 
    2423       \rm out_rsync 
     2423      \rm /tmp/out_command.$$ 
    24242424      break 
    24252425    fi 
     
    24542454  i=0 
    24552455  while [ $i -lt $NB_ESSAI ] ; do 
    2456     ncwa $@ > out_rsync 2>&1 
     2456    ncwa $@ > /tmp/out_command.$$ 2>&1 
    24572457    status=$? 
    24582458    if [ ${status} -gt 0 ] ; then 
    24592459      IGCM_debug_Print 2 "IGCM_sys_ncwa : error code ${status}" 
    2460       cat out_rsync 
    2461       \rm out_rsync 
     2460      cat /tmp/out_command.$$ 
     2461      \rm /tmp/out_command.$$ 
    24622462      IGCM_debug_Print 2 "IGCM_sys_ncwa : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    24632463      sleep $DELAI 
    24642464    else 
    2465       \rm out_rsync 
     2465      \rm /tmp/out_command.$$ 
    24662466      break 
    24672467    fi 
     
    24932493  typeset status 
    24942494 
    2495   \cdo $@ > out_rsync 2>&1 
     2495  \cdo $@ > /tmp/out_command.$$ 2>&1 
    24962496  status=$? 
    24972497  if [ ${status} -gt 0 ] ; then 
    24982498    echo "IGCM_sys_cdo : error code ${status}" 
    2499     cat out_rsync 
    2500     \rm out_rsync 
     2499    cat /tmp/out_command.$$ 
     2500    \rm /tmp/out_command.$$ 
    25012501    IGCM_debug_PopStack "IGCM_sys_cdo" 
    25022502    return 1 
Note: See TracChangeset for help on using the changeset viewer.