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_ada.ksh

    r936 r938  
    824824  mkdir -p ${HOME}/MIRROR/${PATHlibIGCM} 
    825825 
    826   echo ${RSYNC} ${RSYNC_opt} ${libIGCM} ${HOME}/MIRROR/${PATHlibIGCM} > out_rsync 2>&1 
    827   ${RSYNC} ${RSYNC_opt} ${libIGCM} ${HOME}/MIRROR/${PATHlibIGCM} >> out_rsync 2>&1 
     826  echo ${RSYNC} ${RSYNC_opt} ${libIGCM} ${HOME}/MIRROR/${PATHlibIGCM} > /tmp/out_command.$$ 2>&1 
     827  ${RSYNC} ${RSYNC_opt} ${libIGCM} ${HOME}/MIRROR/${PATHlibIGCM} >> /tmp/out_command.$$ 2>&1 
    828828  status=$? 
    829829 
    830830  if [ ${status} -gt 0 ] ; then 
    831831    echo "IGCM_sys_Mirror_libIGCM Warning : no libIGCM on frontend." 
    832     cat out_rsync 
     832    cat /tmp/out_command.$$ 
    833833  fi 
    834834  IGCM_debug_PopStack "IGCM_sys_Mirror_libIGCM" 
     
    848848  typeset status 
    849849 
    850   echo cp $@ > out_rsync 2>&1 
    851   \cp $@ >> out_rsync 2>&1 
     850  echo cp $@ > /tmp/out_command.$$ 2>&1 
     851  \cp $@ >> /tmp/out_command.$$ 2>&1 
    852852  status=$? 
    853853 
    854854  if [ ${status} -gt 0 ] ; then 
    855855    echo "IGCM_sys_Cp : error code ${status}" 
    856     cat out_rsync 
     856    cat /tmp/out_command.$$ 
    857857    IGCM_debug_Exit "IGCM_sys_Cp" 
    858858  else 
    859     \rm out_rsync 
     859    \rm /tmp/out_command.$$ 
    860860  fi 
    861861  IGCM_debug_PopStack "IGCM_sys_Cp" 
     
    875875  typeset status 
    876876 
    877   echo rm $@ > out_rsync 2>&1 
    878   \rm $@ >> out_rsync 2>&1 
     877  echo rm $@ > /tmp/out_command.$$ 2>&1 
     878  \rm $@ >> /tmp/out_command.$$ 2>&1 
    879879  status=$? 
    880880 
    881881  if [ ${status} -gt 0 ] ; then 
    882882    echo "IGCM_sys_Rm : error code ${status}" 
    883     cat out_rsync 
     883    cat /tmp/out_command.$$ 
    884884    IGCM_debug_Exit "IGCM_sys_Rm" 
    885885  else 
    886     \rm out_rsync 
     886    \rm /tmp/out_command.$$ 
    887887  fi 
    888888  IGCM_debug_PopStack "IGCM_sys_Rm" 
     
    919919    typeset status 
    920920 
    921     echo mv $@ > out_rsync 2>&1 
    922     \mv $@ >> out_rsync 2>&1 
     921    echo mv $@ > /tmp/out_command.$$ 2>&1 
     922    \mv $@ >> /tmp/out_command.$$ 2>&1 
    923923    status=$? 
    924924 
    925925    if [ ${status} -gt 0 ] ; then 
    926926      echo "IGCM_sys_Mv : error code ${status}" 
    927       cat out_rsync 
     927      cat /tmp/out_command.$$ 
    928928      IGCM_debug_Exit "IGCM_sys_Mv" 
    929929    else 
    930       \rm out_rsync 
     930      \rm /tmp/out_command.$$ 
    931931    fi 
    932932  fi 
     
    960960    DEBUG_sys=false IGCM_sys_IsFileArchived $2 
    961961    if [ $? = 0 ] ; then 
    962       \rcp -r $1 ${STOREHOST}:$2 > out_rsync 2>&1 
     962      \rcp -r $1 ${STOREHOST}:$2 > /tmp/out_command.$$ 2>&1 
    963963      status=$? 
    964964    else 
    965       \cp -r $1 $2 > out_rsync 2>&1 
     965      \cp -r $1 $2 > /tmp/out_command.$$ 2>&1 
    966966      status=$? 
    967967    fi 
     
    969969    if [ ${status} -gt 0 ] ; then 
    970970      IGCM_debug_Print 2 "IGCM_sys_Put_Dir : rcp or cp failed error code ${status}" 
    971       cat out_rsync 
     971      cat /tmp/out_command.$$ 
    972972      IGCM_debug_Exit "IGCM_sys_Put_Dir" 
    973973    else 
    974       \rm out_rsync 
     974      \rm /tmp/out_command.$$ 
    975975    fi 
    976976  fi 
     
    10111011      i=0 
    10121012      while [ $i -lt $NB_ESSAI ] ; do 
    1013         \rcp -rp ${STOREHOST}:$1 $2 > out_rsync 2>&1 
     1013        \rcp -rp ${STOREHOST}:$1 $2 > /tmp/out_command.$$ 2>&1 
    10141014        status=$? 
    10151015        if [ ${status} -gt 0 ]; then 
     
    10231023      done 
    10241024    else 
    1025       \cp -rp $1 $2 > out_rsync 2>&1 
     1025      \cp -rp $1 $2 > /tmp/out_command.$$ 2>&1 
    10261026      status=$? 
    10271027      if [ ${status} -gt 0 ] ; then 
    10281028        IGCM_debug_Print 2 "IGCM_sys_Get_Dir : cp failed error code ${status}" 
    1029         cat out_rsync 
     1029        cat /tmp/out_command.$$ 
    10301030        IGCM_debug_Exit "IGCM_sys_Get_Dir" 
    10311031      else 
    1032         \rm out_rsync 
     1032        \rm /tmp/out_command.$$ 
    10331033      fi 
    10341034    fi 
    10351035    if [ ${status} -gt 0 ] ; then 
    10361036      echo "IGCM_sys_Get_Dir : error." 
    1037       cat out_rsync 
     1037      cat /tmp/out_command.$$ 
    10381038      IGCM_debug_Exit "IGCM_sys_Get_Dir" 
    10391039    else 
    1040       \rm out_rsync 
     1040      \rm /tmp/out_command.$$ 
    10411041    fi 
    10421042  fi 
     
    10691069    i=0 
    10701070    while [ $i -lt $NB_ESSAI ] ; do 
    1071       \cp -urL $1 $2 > out_rsync 2>&1 
     1071      \cp -urL $1 $2 > /tmp/out_command.$$ 2>&1 
    10721072      status=$? 
    10731073      if [ ${status} -gt 0 ]; then 
     
    10831083    if [ ${status} -gt 0 ] ; then 
    10841084      echo "IGCM_sys_Get_Master : error." 
    1085       cat out_rsync 
     1085      cat /tmp/out_command.$$ 
    10861086      IGCM_debug_Exit "IGCM_sys_Get_Master" 
    10871087    else 
    1088       \rm out_rsync 
     1088      \rm /tmp/out_command.$$ 
    10891089    fi 
    10901090  fi 
     
    11251125    DEBUG_sys=false IGCM_sys_IsFileArchived $2 
    11261126    if [ $? = 0 ] ; then 
    1127       mfput $1 $2 > out_rsync 2>&1 
     1127      mfput $1 $2 > /tmp/out_command.$$ 2>&1 
    11281128      status=$? 
    11291129    else 
    11301130      IGCM_sys_MkdirArchive $( dirname $2 ) 
    1131       \cp $1 $2 > out_rsync 2>&1 
     1131      \cp $1 $2 > /tmp/out_command.$$ 2>&1 
    11321132      status=$? 
    11331133    fi 
     
    11351135#       #RSYNC WITH NETWORK RSH CALL 
    11361136#       IGCM_sys_MkdirArchive $( dirname $2 ) 
    1137 #       echo ${RSYNC} ${RSYNC_opt} --rsync-path=${REMOTE_RSYNC} -e rsh ${RUN_DIR}/$1 ${STOREHOST}:${2} > out_rsync 2>&1 
    1138 #       ${RSYNC} ${RSYNC_opt} --rsync-path=${REMOTE_RSYNC} -e rsh ${RUN_DIR}/$1 ${STOREHOST}:${2} >> out_rsync 2>&1 
     1137#       echo ${RSYNC} ${RSYNC_opt} --rsync-path=${REMOTE_RSYNC} -e rsh ${RUN_DIR}/$1 ${STOREHOST}:${2} > /tmp/out_command.$$ 2>&1 
     1138#       ${RSYNC} ${RSYNC_opt} --rsync-path=${REMOTE_RSYNC} -e rsh ${RUN_DIR}/$1 ${STOREHOST}:${2} >> /tmp/out_command.$$ 2>&1 
    11391139 
    11401140#       #RSYNC WITH NFS USE 
    1141 #       echo ${RSYNC} ${RSYNC_opt} ${RUN_DIR}/$1 ${2} > out_rsync 2>&1 
    1142 #       ${RSYNC} ${RSYNC_opt} ${RUN_DIR}/$1 ${2} >> out_rsync 2>&1 
     1141#       echo ${RSYNC} ${RSYNC_opt} ${RUN_DIR}/$1 ${2} > /tmp/out_command.$$ 2>&1 
     1142#       ${RSYNC} ${RSYNC_opt} ${RUN_DIR}/$1 ${2} >> /tmp/out_command.$$ 2>&1 
    11431143 
    11441144#       status=$? 
    11451145#       IGCM_sys_Rsync_out $status 
    11461146 
    1147 #       ${libIGCM}/libIGCM_sys/IGCM_analyse_rsync_out.awk out_rsync 
     1147#       ${libIGCM}/libIGCM_sys/IGCM_analyse_rsync_out.awk /tmp/out_command.$$ 
    11481148#       (( status=status+$? )) 
    11491149 
    11501150    if [ ${status} -gt 0 ] ; then 
    11511151      echo "IGCM_sys_Put_Rest : mfput or cp failed error code ${status}" 
    1152       cat out_rsync 
     1152      cat /tmp/out_command.$$ 
    11531153      IGCM_debug_Exit "IGCM_sys_Put_Rest" 
    11541154    else 
    1155       \rm out_rsync 
     1155      \rm /tmp/out_command.$$ 
    11561156    fi 
    11571157  fi 
     
    11841184    # 
    11851185    # USUAL WAY 
    1186     \cp $1 $2 > out_rsync 2>&1 
     1186    \cp $1 $2 > /tmp/out_command.$$ 2>&1 
    11871187    status=$? 
    11881188 
     
    11911191      [ -f ${2} ] && ls -l ${2} 
    11921192      [ -f ${2}/${1} ] && ls -l ${2}/${1} 
    1193       cat out_rsync 
     1193      cat /tmp/out_command.$$ 
    11941194      IGCM_debug_Exit "IGCM_sys_PutBuffer_Rest" 
    11951195    else 
    1196       \rm out_rsync 
     1196      \rm /tmp/out_command.$$ 
    11971197    fi 
    11981198  fi 
     
    12441244    DEBUG_sys=false IGCM_sys_IsFileArchived $2 
    12451245    if [ $? = 0 ] ; then 
    1246       mfput $1 $2 > out_rsync 2>&1 
     1246      mfput $1 $2 > /tmp/out_command.$$ 2>&1 
    12471247      status=$? 
    12481248    else 
    12491249      IGCM_sys_MkdirArchive $( dirname $2 ) 
    1250       \cp $1 $2 > out_rsync 2>&1 
     1250      \cp $1 $2 > /tmp/out_command.$$ 2>&1 
    12511251      status=$? 
    12521252    fi 
     
    12541254#       #RSYNC WITH NETWORK RSH CALL 
    12551255#       IGCM_sys_MkdirArchive $( dirname $2 ) 
    1256 #       echo ${RSYNC} ${RSYNC_opt} --rsync-path=${REMOTE_RSYNC} -e rsh ${RUN_DIR}/$1 ${STOREHOST}:${2} > out_rsync 2>&1 
    1257 #       ${RSYNC} ${RSYNC_opt} --rsync-path=${REMOTE_RSYNC} -e rsh ${RUN_DIR}/$1 ${STOREHOST}:${2} >> out_rsync 2>&1 
     1256#       echo ${RSYNC} ${RSYNC_opt} --rsync-path=${REMOTE_RSYNC} -e rsh ${RUN_DIR}/$1 ${STOREHOST}:${2} > /tmp/out_command.$$ 2>&1 
     1257#       ${RSYNC} ${RSYNC_opt} --rsync-path=${REMOTE_RSYNC} -e rsh ${RUN_DIR}/$1 ${STOREHOST}:${2} >> /tmp/out_command.$$ 2>&1 
    12581258 
    12591259#       #RSYNC WITH NFS USE 
    1260 #       echo ${RSYNC} ${RSYNC_opt} ${RUN_DIR}/$1 ${2} > out_rsync 2>&1 
    1261 #       ${RSYNC} ${RSYNC_opt} ${RUN_DIR}/$1 ${2} >> out_rsync 2>&1 
     1260#       echo ${RSYNC} ${RSYNC_opt} ${RUN_DIR}/$1 ${2} > /tmp/out_command.$$ 2>&1 
     1261#       ${RSYNC} ${RSYNC_opt} ${RUN_DIR}/$1 ${2} >> /tmp/out_command.$$ 2>&1 
    12621262 
    12631263#       status=$? 
    12641264#       IGCM_sys_Rsync_out $status 
    12651265 
    1266 #       ${libIGCM}/libIGCM_sys/IGCM_analyse_rsync_out.awk out_rsync 
     1266#       ${libIGCM}/libIGCM_sys/IGCM_analyse_rsync_out.awk /tmp/out_command.$$ 
    12671267#       (( status=status+$? )) 
    12681268 
    12691269    if [ ${status} -gt 0 ] ; then 
    12701270      IGCM_debug_Print 2 "IGCM_sys_Put_Out : mfput or cp failed error code ${status}" 
    1271       cat out_rsync 
     1271      cat /tmp/out_command.$$ 
    12721272      IGCM_debug_Exit "IGCM_sys_Put_Out" 
    12731273    else 
    1274       \rm out_rsync 
     1274      \rm /tmp/out_command.$$ 
    12751275    fi 
    12761276  fi 
     
    13301330      while [ $i -lt $NB_ESSAI ] ; do 
    13311331        # USUAL WAY 
    1332         \cp $1 $2 > out_rsync 2>&1 
     1332        \cp $1 $2 > /tmp/out_command.$$ 2>&1 
    13331333        status=$? 
    13341334        if [ ${status} -gt 0 ]; then 
     
    13491349      [ -f ${2} ] && ls -l ${2} 
    13501350      [ -f ${2}/${1} ] && ls -l ${2}/${1} 
    1351       cat out_rsync 
     1351      cat /tmp/out_command.$$ 
    13521352      IGCM_debug_Exit "IGCM_sys_PutBuffer_Out" 
    13531353    else 
     
    13601360      fi 
    13611361 
    1362       \rm out_rsync 
     1362      \rm /tmp/out_command.$$ 
    13631363    fi 
    13641364  fi 
     
    14071407    DEBUG_sys=false IGCM_sys_IsFileArchived ${dm_liste[0]} 
    14081408    if [ $? = 0 ] ; then 
    1409       mfget ${dm_liste[*]} ${DEST} > out_rsync 2>&1 
     1409      mfget ${dm_liste[*]} ${DEST} > /tmp/out_command.$$ 2>&1 
    14101410      status=$? 
    14111411    else 
    1412       \cp ${dm_liste[*]} ${DEST} > out_rsync 2>&1 
     1412      \cp ${dm_liste[*]} ${DEST} > /tmp/out_command.$$ 2>&1 
    14131413      status=$? 
    14141414    fi 
    14151415 
    14161416#       #RSYNC WITH NETWORK RSH CALL 
    1417 #       echo ${RSYNC} ${RSYNC_opt} --rsync-path=${REMOTE_RSYNC} -e rsh ${STOREHOST}:"${dm_liste}" ${STOREHOST}:${RUN_DIR}/${DEST} > out_rsync 2>&1 
    1418 #       ${RSYNC} ${RSYNC_opt} --rsync-path=${REMOTE_RSYNC} -e rsh ${STOREHOST}:"${dm_liste}" ${STOREHOST}:${RUN_DIR}/${DEST} >> out_rsync 2>&1 
     1417#       echo ${RSYNC} ${RSYNC_opt} --rsync-path=${REMOTE_RSYNC} -e rsh ${STOREHOST}:"${dm_liste}" ${STOREHOST}:${RUN_DIR}/${DEST} > /tmp/out_command.$$ 2>&1 
     1418#       ${RSYNC} ${RSYNC_opt} --rsync-path=${REMOTE_RSYNC} -e rsh ${STOREHOST}:"${dm_liste}" ${STOREHOST}:${RUN_DIR}/${DEST} >> /tmp/out_command.$$ 2>&1 
    14191419 
    14201420#       #RSYNC WITH NFS USE 
    1421 #       echo ${RSYNC} ${RSYNC_opt} ${dm_liste} ${RUN_DIR}/${DEST} > out_rsync 2>&1 
    1422 #       ${RSYNC} ${RSYNC_opt} ${dm_liste} ${RUN_DIR}/${DEST} >> out_rsync 2>&1 
     1421#       echo ${RSYNC} ${RSYNC_opt} ${dm_liste} ${RUN_DIR}/${DEST} > /tmp/out_command.$$ 2>&1 
     1422#       ${RSYNC} ${RSYNC_opt} ${dm_liste} ${RUN_DIR}/${DEST} >> /tmp/out_command.$$ 2>&1 
    14231423 
    14241424#       status=$? 
    14251425#       IGCM_sys_Rsync_out $status 
    14261426 
    1427 #       ${libIGCM}/libIGCM_sys/IGCM_analyse_rsync_out.awk out_rsync 
     1427#       ${libIGCM}/libIGCM_sys/IGCM_analyse_rsync_out.awk /tmp/out_command.$$ 
    14281428#       (( status=status+$? )) 
    14291429 
    14301430    if [ ${status} -gt 0 ] ; then 
    14311431      IGCM_debug_Print 2 "IGCM_sys_Get : mfget or cp failed error code ${status}" 
    1432       cat out_rsync 
     1432      cat /tmp/out_command.$$ 
    14331433      IGCM_debug_Exit "IGCM_sys_Get" 
    14341434    else 
    1435       \rm out_rsync 
     1435      \rm /tmp/out_command.$$ 
    14361436    fi 
    14371437  fi 
     
    14731473        i=0 
    14741474        while [ $i -lt $NB_ESSAI ] ; do 
    1475           \cp ${target} ${DEST}/${local_file} >> out_rsync 2>&1 
     1475          \cp ${target} ${DEST}/${local_file} >> /tmp/out_command.$$ 2>&1 
    14761476          status=$? 
    14771477          if [ ${status} -gt 0 ]; then 
     
    14861486        if [ ${status} -gt 0 ] ; then 
    14871487          echo "IGCM_sys_Get : error" 
    1488           cat out_rsync 
    1489           \rm out_rsync 
     1488          cat /tmp/out_command.$$ 
     1489          \rm /tmp/out_command.$$ 
    14901490          IGCM_debug_Exit "IGCM_sys_GetBuffer" 
    14911491        else 
    1492           \rm out_rsync 
     1492          \rm /tmp/out_command.$$ 
    14931493        fi 
    14941494      done 
     
    14961496      i=0 
    14971497      while [ $i -lt $NB_ESSAI ] ; do 
    1498         \cp ${buf_liste} ${DEST} >> out_rsync 2>&1 
     1498        \cp ${buf_liste} ${DEST} >> /tmp/out_command.$$ 2>&1 
    14991499        status=$? 
    15001500        if [ ${status} -gt 0 ]; then 
     
    15091509      if [ ${status} -gt 0 ] ; then 
    15101510        echo "IGCM_sys_Get : error" 
    1511         cat out_rsync 
    1512         \rm out_rsync 
     1511        cat /tmp/out_command.$$ 
     1512        \rm /tmp/out_command.$$ 
    15131513        IGCM_debug_Exit "IGCM_sys_GetBuffer" 
    15141514      else 
    1515         \rm out_rsync 
     1515        \rm /tmp/out_command.$$ 
    15161516      fi 
    15171517    fi 
     
    16361636  i=0 
    16371637  while [ $i -lt $NB_ESSAI ] ; do 
    1638     /smphome/rech/psl/rpsl035/bin/rebuild -f -o $@ > out_rsync 2>&1 
     1638    /smphome/rech/psl/rpsl035/bin/rebuild -f -o $@ > /tmp/out_command.$$ 2>&1 
    16391639    status=$? 
    16401640    if [ ${status} -gt 0 ] ; then 
    16411641      IGCM_debug_Print 2 "IGCM_sys_rebuild : error code ${status}" 
    1642       cat out_rsync 
    1643       \rm out_rsync 
     1642      cat /tmp/out_command.$$ 
     1643      \rm /tmp/out_command.$$ 
    16441644      IGCM_debug_Print 2 "IGCM_sys_rebuild : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    16451645      firstArg=${1} 
     
    16471647      sleep $DELAI 
    16481648    else 
    1649       \rm out_rsync 
     1649      \rm /tmp/out_command.$$ 
    16501650      break 
    16511651    fi 
     
    20352035  i=0 
    20362036  while [ $i -lt $NB_ESSAI ] ; do 
    2037     ncap2 "$@" > out_rsync 2>&1 
     2037    ncap2 "$@" > /tmp/out_command.$$ 2>&1 
    20382038    status=$? 
    20392039    if [ ${status} -gt 0 ] ; then 
    20402040      IGCM_debug_Print 2 "IGCM_sys_ncap2 : error code ${status}" 
    2041       cat out_rsync 
    2042       \rm out_rsync 
     2041      cat /tmp/out_command.$$ 
     2042      \rm /tmp/out_command.$$ 
    20432043      IGCM_debug_Print 2 "IGCM_sys_ncap2 : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    20442044      sleep $DELAI 
    20452045    else 
    2046       \rm out_rsync 
     2046      \rm /tmp/out_command.$$ 
    20472047      break 
    20482048    fi 
     
    20772077  i=0 
    20782078  while [ $i -lt $NB_ESSAI ] ; do 
    2079     ncatted "$@" > out_rsync 2>&1 
     2079    ncatted "$@" > /tmp/out_command.$$ 2>&1 
    20802080    status=$? 
    20812081    if [ ${status} -gt 0 ] ; then 
    20822082      IGCM_debug_Print 2 "IGCM_sys_ncatted : error code ${status}" 
    2083       cat out_rsync 
    2084       \rm out_rsync 
     2083      cat /tmp/out_command.$$ 
     2084      \rm /tmp/out_command.$$ 
    20852085      IGCM_debug_Print 2 "IGCM_sys_ncatted : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    20862086      sleep $DELAI 
    20872087    else 
    2088       \rm out_rsync 
     2088      \rm /tmp/out_command.$$ 
    20892089      break 
    20902090    fi 
     
    21192119  i=0 
    21202120  while [ $i -lt $NB_ESSAI ] ; do 
    2121     ncbo $@ > out_rsync 2>&1 
     2121    ncbo $@ > /tmp/out_command.$$ 2>&1 
    21222122    status=$? 
    21232123    if [ ${status} -gt 0 ] ; then 
    21242124      IGCM_debug_Print 2 "IGCM_sys_ncbo : error code ${status}" 
    2125       cat out_rsync 
    2126       \rm out_rsync 
     2125      cat /tmp/out_command.$$ 
     2126      \rm /tmp/out_command.$$ 
    21272127      IGCM_debug_Print 2 "IGCM_sys_ncbo : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    21282128      sleep $DELAI 
    21292129    else 
    2130       \rm out_rsync 
     2130      \rm /tmp/out_command.$$ 
    21312131      break 
    21322132    fi 
     
    21612161  i=0 
    21622162  while [ $i -lt $NB_ESSAI ] ; do 
    2163     ncdiff $@ > out_rsync 2>&1 
     2163    ncdiff $@ > /tmp/out_command.$$ 2>&1 
    21642164    status=$? 
    21652165    if [ ${status} -gt 0 ] ; then 
    21662166      IGCM_debug_Print 2 "IGCM_sys_ncdiff : error code ${status}" 
    2167       cat out_rsync 
    2168       \rm out_rsync 
     2167      cat /tmp/out_command.$$ 
     2168      \rm /tmp/out_command.$$ 
    21692169      IGCM_debug_Print 2 "IGCM_sys_ncdiff : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    21702170      sleep $DELAI 
    21712171    else 
    2172       \rm out_rsync 
     2172      \rm /tmp/out_command.$$ 
    21732173      break 
    21742174    fi 
     
    22032203  i=0 
    22042204  while [ $i -lt $NB_ESSAI ] ; do 
    2205     ncea $@ > out_rsync 2>&1 
     2205    ncea $@ > /tmp/out_command.$$ 2>&1 
    22062206    status=$? 
    22072207    if [ ${status} -gt 0 ] ; then 
    22082208      IGCM_debug_Print 2 "IGCM_sys_ncea : error code ${status}" 
    2209       cat out_rsync 
    2210       \rm out_rsync 
     2209      cat /tmp/out_command.$$ 
     2210      \rm /tmp/out_command.$$ 
    22112211      IGCM_debug_Print 2 "IGCM_sys_ncea : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    22122212      sleep $DELAI 
    22132213    else 
    2214       \rm out_rsync 
     2214      \rm /tmp/out_command.$$ 
    22152215      break 
    22162216    fi 
     
    22452245  i=0 
    22462246  while [ $i -lt $NB_ESSAI ] ; do 
    2247     ncecat $@ > out_rsync 2>&1 
     2247    ncecat $@ > /tmp/out_command.$$ 2>&1 
    22482248    status=$? 
    22492249    if [ ${status} -gt 0 ] ; then 
    22502250      IGCM_debug_Print 2 "IGCM_sys_ncecat : error code ${status}" 
    2251       cat out_rsync 
    2252       \rm out_rsync 
     2251      cat /tmp/out_command.$$ 
     2252      \rm /tmp/out_command.$$ 
    22532253      IGCM_debug_Print 2 "IGCM_sys_ncecat : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    22542254      sleep $DELAI 
    22552255    else 
    2256       \rm out_rsync 
     2256      \rm /tmp/out_command.$$ 
    22572257      break 
    22582258    fi 
     
    22872287  i=0 
    22882288  while [ $i -lt $NB_ESSAI ] ; do 
    2289     ncflint $@ > out_rsync 2>&1 
     2289    ncflint $@ > /tmp/out_command.$$ 2>&1 
    22902290    status=$? 
    22912291    if [ ${status} -gt 0 ] ; then 
    22922292      IGCM_debug_Print 2 "IGCM_sys_ncflint : error code ${status}" 
    2293       cat out_rsync 
    2294       \rm out_rsync 
     2293      cat /tmp/out_command.$$ 
     2294      \rm /tmp/out_command.$$ 
    22952295      IGCM_debug_Print 2 "IGCM_sys_ncflint : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    22962296      sleep $DELAI 
    22972297    else 
    2298       \rm out_rsync 
     2298      \rm /tmp/out_command.$$ 
    22992299      break 
    23002300    fi 
     
    23292329  i=0 
    23302330  while [ $i -lt $NB_ESSAI ] ; do 
    2331     ncks $@ > out_rsync 2>&1 
     2331    ncks $@ > /tmp/out_command.$$ 2>&1 
    23322332    status=$? 
    23332333    if [ ${status} -gt 0 ] ; then 
    23342334      IGCM_debug_Print 2 "IGCM_sys_ncks : error code ${status}" 
    2335       cat out_rsync 
    2336       \rm out_rsync 
     2335      cat /tmp/out_command.$$ 
     2336      \rm /tmp/out_command.$$ 
    23372337      IGCM_debug_Print 2 "IGCM_sys_ncks : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    23382338      sleep $DELAI 
    23392339    else 
    2340       \rm out_rsync 
     2340      \rm /tmp/out_command.$$ 
    23412341      break 
    23422342    fi 
     
    23712371  i=0 
    23722372  while [ $i -lt $NB_ESSAI ] ; do 
    2373     ncpdq $@ > out_rsync 2>&1 
     2373    ncpdq $@ > /tmp/out_command.$$ 2>&1 
    23742374    status=$? 
    23752375    if [ ${status} -gt 0 ] ; then 
    23762376      IGCM_debug_Print 2 "IGCM_sys_ncpdq : error code ${status}" 
    2377       cat out_rsync 
    2378       \rm out_rsync 
     2377      cat /tmp/out_command.$$ 
     2378      \rm /tmp/out_command.$$ 
    23792379      IGCM_debug_Print 2 "IGCM_sys_ncpdq : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    23802380      sleep $DELAI 
    23812381    else 
    2382       \rm out_rsync 
     2382      \rm /tmp/out_command.$$ 
    23832383      break 
    23842384    fi 
     
    24132413  i=0 
    24142414  while [ $i -lt $NB_ESSAI ] ; do 
    2415     ncra $@ > out_rsync 2>&1 
     2415    ncra $@ > /tmp/out_command.$$ 2>&1 
    24162416    status=$? 
    24172417    if [ ${status} -gt 0 ] ; then 
    24182418      IGCM_debug_Print 2 "IGCM_sys_ncra : error code ${status}" 
    2419       cat out_rsync 
    2420       \rm out_rsync 
     2419      cat /tmp/out_command.$$ 
     2420      \rm /tmp/out_command.$$ 
    24212421      IGCM_debug_Print 2 "IGCM_sys_ncra : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    24222422      sleep $DELAI 
    24232423    else 
    2424       \rm out_rsync 
     2424      \rm /tmp/out_command.$$ 
    24252425      break 
    24262426    fi 
     
    24552455  i=0 
    24562456  while [ $i -lt $NB_ESSAI ] ; do 
    2457     ncrcat $@ > out_rsync 2>&1 
     2457    ncrcat $@ > /tmp/out_command.$$ 2>&1 
    24582458    status=$? 
    24592459    if [ ${status} -gt 0 ] ; then 
    24602460      IGCM_debug_Print 2 "IGCM_sys_ncrcat : error code ${status}" 
    2461       cat out_rsync 
    2462       \rm out_rsync 
     2461      cat /tmp/out_command.$$ 
     2462      \rm /tmp/out_command.$$ 
    24632463      IGCM_debug_Print 2 "IGCM_sys_ncrcat : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    24642464      sleep $DELAI 
    2465     elif [ ! "X$( grep "WARNING Intra-file non-monotonicity" out_rsync )" = "X" ] ; then 
     2465    elif [ ! "X$( grep "WARNING Intra-file non-monotonicity" /tmp/out_command.$$ )" = "X" ] ; then 
    24662466      IGCM_debug_Print 2 "IGCM_sys_ncrcat : WARNING Intra-file non-monotonicity" 
    2467       cat out_rsync 
     2467      cat /tmp/out_command.$$ 
    24682468      # remove files having corrupted time axis 
    24692469      eval lastArg=\${$#} 
    24702470      IGCM_debug_Print 2 "IGCM_sys_ncrcat : Delete ${lastArg}" 
    24712471      \rm ${lastArg} 
    2472       \rm out_rsync 
     2472      \rm /tmp/out_command.$$ 
    24732473      IGCM_debug_Print 2 "IGCM_sys_ncrcat : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    24742474      sleep $DELAI 
    24752475    else 
    2476       \rm out_rsync 
     2476      \rm /tmp/out_command.$$ 
    24772477      break 
    24782478    fi 
     
    25072507  i=0 
    25082508  while [ $i -lt $NB_ESSAI ] ; do 
    2509     ncrename $@ > out_rsync 2>&1 
     2509    ncrename $@ > /tmp/out_command.$$ 2>&1 
    25102510    status=$? 
    25112511    if [ ${status} -gt 0 ] ; then 
    25122512      IGCM_debug_Print 2 "IGCM_sys_ncrename : error code ${status}" 
    2513       cat out_rsync 
    2514       \rm out_rsync 
     2513      cat /tmp/out_command.$$ 
     2514      \rm /tmp/out_command.$$ 
    25152515      IGCM_debug_Print 2 "IGCM_sys_ncrename : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    25162516      sleep $DELAI 
    25172517    else 
    2518       \rm out_rsync 
     2518      \rm /tmp/out_command.$$ 
    25192519      break 
    25202520    fi 
     
    25492549  i=0 
    25502550  while [ $i -lt $NB_ESSAI ] ; do 
    2551     ncwa $@ > out_rsync 2>&1 
     2551    ncwa $@ > /tmp/out_command.$$ 2>&1 
    25522552    status=$? 
    25532553    if [ ${status} -gt 0 ] ; then 
    25542554      IGCM_debug_Print 2 "IGCM_sys_ncwa : error code ${status}" 
    2555       cat out_rsync 
    2556       \rm out_rsync 
     2555      cat /tmp/out_command.$$ 
     2556      \rm /tmp/out_command.$$ 
    25572557      IGCM_debug_Print 2 "IGCM_sys_ncwa : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    25582558      sleep $DELAI 
    25592559    else 
    2560       \rm out_rsync 
     2560      \rm /tmp/out_command.$$ 
    25612561      break 
    25622562    fi 
     
    25882588  typeset status 
    25892589 
    2590   \cdo $@ > out_rsync 2>&1 
     2590  \cdo $@ > /tmp/out_command.$$ 2>&1 
    25912591  status=$? 
    25922592  if [ ${status} -gt 0 ] ; then 
    25932593    echo "IGCM_sys_cdo : error code ${status}" 
    2594     cat out_rsync 
    2595     \rm out_rsync 
     2594    cat /tmp/out_command.$$ 
     2595    \rm /tmp/out_command.$$ 
    25962596    IGCM_debug_PopStack "IGCM_sys_cdo" 
    25972597    return 1 
Note: See TracChangeset for help on using the changeset viewer.