Changeset 938


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

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

Location:
trunk/libIGCM/libIGCM_sys
Files:
5 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 
  • trunk/libIGCM/libIGCM_sys/libIGCM_sys_curie.ksh

    r936 r938  
    846846  mkdir -p ${HOME}/MIRROR/${PATHlibIGCM} 
    847847 
    848   echo ${RSYNC} ${RSYNC_opt} ${libIGCM} ${HOME}/MIRROR/${PATHlibIGCM} > out_rsync 2>&1 
    849   ${RSYNC} ${RSYNC_opt} ${libIGCM} ${HOME}/MIRROR/${PATHlibIGCM} >> out_rsync 2>&1 
     848  echo ${RSYNC} ${RSYNC_opt} ${libIGCM} ${HOME}/MIRROR/${PATHlibIGCM} > /tmp/out_command.$$ 2>&1 
     849  ${RSYNC} ${RSYNC_opt} ${libIGCM} ${HOME}/MIRROR/${PATHlibIGCM} >> /tmp/out_command.$$ 2>&1 
    850850  status=$? 
    851851 
    852852  if [ ${status} -gt 0 ] ; then 
    853853    echo "IGCM_sys_Mirror_libIGCM Warning : no libIGCM on frontend." 
    854     cat out_rsync 
     854    cat /tmp/out_command.$$ 
    855855  fi 
    856856  IGCM_debug_PopStack "IGCM_sys_Mirror_libIGCM" 
     
    870870  typeset status 
    871871 
    872   echo cp $@ > out_rsync 2>&1 
    873   \cp $@ >> out_rsync 2>&1 
     872  echo cp $@ > /tmp/out_command.$$ 2>&1 
     873  \cp $@ >> /tmp/out_command.$$ 2>&1 
    874874  status=$? 
    875875 
    876876  if [ ${status} -gt 0 ] ; then 
    877877    echo "IGCM_sys_Cp : error code ${status}" 
    878     cat out_rsync 
     878    cat /tmp/out_command.$$ 
    879879    IGCM_debug_Exit "IGCM_sys_Cp" 
    880880  else 
    881     \rm out_rsync 
     881    \rm /tmp/out_command.$$ 
    882882  fi 
    883883  IGCM_debug_PopStack "IGCM_sys_Cp" 
     
    897897  typeset status 
    898898 
    899   echo rm $@ > out_rsync 2>&1 
    900   \rm $@ >> out_rsync 2>&1 
     899  echo rm $@ > /tmp/out_command.$$ 2>&1 
     900  \rm $@ >> /tmp/out_command.$$ 2>&1 
    901901  status=$? 
    902902 
    903903  if [ ${status} -gt 0 ] ; then 
    904904    echo "IGCM_sys_Rm : error code ${status}" 
    905     cat out_rsync 
     905    cat /tmp/out_command.$$ 
    906906    IGCM_debug_Exit "IGCM_sys_Rm" 
    907907  else 
    908     \rm out_rsync 
     908    \rm /tmp/out_command.$$ 
    909909  fi 
    910910  IGCM_debug_PopStack "IGCM_sys_Rm" 
     
    925925  typeset status 
    926926 
    927   echo rm $@ > out_rsync 2>&1 
    928   \rm $@ >> out_rsync 2>&1 
     927  echo rm $@ > /tmp/out_command.$$ 2>&1 
     928  \rm $@ >> /tmp/out_command.$$ 2>&1 
    929929  status=$? 
    930930 
    931931  if [ ${status} -gt 0 ] ; then 
    932932    echo "IGCM_sys_RmRunDir : rm error code is ${status}." 
    933     cat out_rsync 
     933    cat /tmp/out_command.$$ 
    934934    IGCM_debug_Exit "IGCM_sys_RmRunDir" 
    935935  else 
    936     \rm out_rsync 
     936    \rm /tmp/out_command.$$ 
    937937  fi 
    938938  IGCM_debug_PopStack "IGCM_sys_RmRunDir" 
     
    954954    typeset status 
    955955 
    956     echo mv $@ > out_rsync 2>&1 
    957     \mv $@ >> out_rsync 2>&1 
     956    echo mv $@ > /tmp/out_command.$$ 2>&1 
     957    \mv $@ >> /tmp/out_command.$$ 2>&1 
    958958    status=$? 
    959959 
    960960    if [ ${status} -gt 0 ] ; then 
    961961      echo "IGCM_sys_Mv : error code ${status}" 
    962       cat out_rsync 
     962      cat /tmp/out_command.$$ 
    963963      IGCM_debug_Exit "IGCM_sys_Mv" 
    964964    else 
    965       \rm out_rsync 
     965      \rm /tmp/out_command.$$ 
    966966    fi 
    967967  fi 
     
    993993    # 
    994994    #USUAL WAY 
    995     \cp -r $1 $2 > out_rsync 2>&1 
     995    \cp -r $1 $2 > /tmp/out_command.$$ 2>&1 
    996996    status=$? 
    997997 
    998998    if [ ${status} -gt 0 ] ; then 
    999999      IGCM_debug_Print 2 "IGCM_sys_Put_Dir : cp failed error code ${status}" 
    1000       cat out_rsync 
     1000      cat /tmp/out_command.$$ 
    10011001      IGCM_debug_Exit "IGCM_sys_Put_Dir" 
    10021002    else 
    1003       \rm out_rsync 
     1003      \rm /tmp/out_command.$$ 
    10041004    fi 
    10051005  fi 
     
    10391039    i=0 
    10401040    while [ $i -lt $NB_ESSAI ] ; do 
    1041       \cp -ur $1 $2 >> out_rsync 2>&1 
     1041      \cp -ur $1 $2 >> /tmp/out_command.$$ 2>&1 
    10421042      status=$? 
    10431043      if [ ${status} -gt 0 ] ; then 
     
    10531053    if [ ${status} -gt 0 ] ; then 
    10541054      echo "IGCM_sys_Get_Dir : error." 
    1055       cat out_rsync 
     1055      cat /tmp/out_command.$$ 
    10561056      IGCM_debug_Exit "IGCM_sys_Get_Dir" 
    10571057    else 
    1058       \rm out_rsync 
     1058      \rm /tmp/out_command.$$ 
    10591059    fi 
    10601060  fi 
     
    10871087    i=0 
    10881088    while [ $i -lt $NB_ESSAI ] ; do 
    1089       \cp -urL $1 $2 > out_rsync 2>&1 
     1089      \cp -urL $1 $2 > /tmp/out_command.$$ 2>&1 
    10901090      status=$? 
    10911091      if [ ${status} -gt 0 ]; then 
     
    11011101    if [ ${status} -gt 0 ] ; then 
    11021102      echo "IGCM_sys_Get_Master : error." 
    1103       cat out_rsync 
     1103      cat /tmp/out_command.$$ 
    11041104      IGCM_debug_Exit "IGCM_sys_Get_Master" 
    11051105    else 
    1106       \rm out_rsync 
     1106      \rm /tmp/out_command.$$ 
    11071107    fi 
    11081108  fi 
     
    11361136    # 
    11371137    # USUAL WAY 
    1138     \cp $1 $2 > out_rsync 2>&1 
     1138    \cp $1 $2 > /tmp/out_command.$$ 2>&1 
    11391139    status=$? 
    11401140 
    11411141#       #RSYNC WITH NETWORK SSH CALL 
    1142 #       echo ${RSYNC} ${RSYNC_opt} -e ssh ${RUN_DIR}/$1 ${STOREHOST}:${2} > out_rsync 2>&1 
    1143 #       ${RSYNC} ${RSYNC_opt} -e ssh ${RUN_DIR}/$1 ${STOREHOST}:${2} >> out_rsync 2>&1 
     1142#       echo ${RSYNC} ${RSYNC_opt} -e ssh ${RUN_DIR}/$1 ${STOREHOST}:${2} > /tmp/out_command.$$ 2>&1 
     1143#       ${RSYNC} ${RSYNC_opt} -e ssh ${RUN_DIR}/$1 ${STOREHOST}:${2} >> /tmp/out_command.$$ 2>&1 
    11441144 
    11451145#       #RSYNC WITH NFS USE 
    1146 #       echo ${RSYNC} ${RSYNC_opt} ${RUN_DIR}/$1 ${2} > out_rsync 2>&1 
    1147 #       ${RSYNC} ${RSYNC_opt} ${RUN_DIR}/$1 ${2} >> out_rsync 2>&1 
     1146#       echo ${RSYNC} ${RSYNC_opt} ${RUN_DIR}/$1 ${2} > /tmp/out_command.$$ 2>&1 
     1147#       ${RSYNC} ${RSYNC_opt} ${RUN_DIR}/$1 ${2} >> /tmp/out_command.$$ 2>&1 
    11481148 
    11491149#       status=$? 
    11501150#       IGCM_sys_Rsync_out $status 
    11511151 
    1152 #       ${libIGCM}/libIGCM_sys/IGCM_analyse_rsync_out.awk out_rsync 
     1152#       ${libIGCM}/libIGCM_sys/IGCM_analyse_rsync_out.awk /tmp/out_command.$$ 
    11531153#       (( status=status+$? )) 
    11541154 
     
    11581158      [ -f ${2} ] && ls -l ${2} 
    11591159      [ -f ${2}/${1} ] && ls -l ${2}/${1} 
    1160       cat out_rsync 
     1160      cat /tmp/out_command.$$ 
    11611161      IGCM_debug_Exit "IGCM_sys_Put_Rest" 
    11621162    else 
     
    11671167      fi 
    11681168 
    1169       \rm out_rsync 
     1169      \rm /tmp/out_command.$$ 
    11701170    fi 
    11711171  fi 
     
    11931193    # 
    11941194    # USUAL WAY 
    1195     \cp $1 $2 > out_rsync 2>&1 
     1195    \cp $1 $2 > /tmp/out_command.$$ 2>&1 
    11961196    status=$? 
    11971197 
     
    12001200      [ -f ${2} ] && ls -l ${2} 
    12011201      [ -f ${2}/${1} ] && ls -l ${2}/${1} 
    1202       cat out_rsync 
     1202      cat /tmp/out_command.$$ 
    12031203      IGCM_debug_Exit "IGCM_sys_PutBuffer_Rest" 
    12041204    else 
     
    12091209      fi 
    12101210 
    1211       \rm out_rsync 
     1211      \rm /tmp/out_command.$$ 
    12121212    fi 
    12131213  fi 
     
    12941294      while [ $i -lt $NB_ESSAI ] ; do 
    12951295        # USUAL WAY 
    1296         \cp $1 $2 > out_rsync 2>&1 
     1296        \cp $1 $2 > /tmp/out_command.$$ 2>&1 
    12971297        status=$? 
    12981298        if [ ${status} -gt 0 ]; then 
     
    13111311 
    13121312#       #RSYNC WITH NETWORK SSH CALL 
    1313 #       echo ${RSYNC} ${RSYNC_opt} -e ssh ${RUN_DIR}/$1 ${STOREHOST}:${2} > out_rsync 2>&1 
    1314 #       ${RSYNC} ${RSYNC_opt} -e ssh ${RUN_DIR}/$1 ${STOREHOST}:${2} >> out_rsync 2>&1 
     1313#       echo ${RSYNC} ${RSYNC_opt} -e ssh ${RUN_DIR}/$1 ${STOREHOST}:${2} > /tmp/out_command.$$ 2>&1 
     1314#       ${RSYNC} ${RSYNC_opt} -e ssh ${RUN_DIR}/$1 ${STOREHOST}:${2} >> /tmp/out_command.$$ 2>&1 
    13151315 
    13161316#       #RSYNC WITH NFS USE 
    1317 #       echo ${RSYNC} ${RSYNC_opt} ${RUN_DIR}/$1 ${2} > out_rsync 2>&1 
    1318 #       ${RSYNC} ${RSYNC_opt} ${RUN_DIR}/$1 ${2} >> out_rsync 2>&1 
     1317#       echo ${RSYNC} ${RSYNC_opt} ${RUN_DIR}/$1 ${2} > /tmp/out_command.$$ 2>&1 
     1318#       ${RSYNC} ${RSYNC_opt} ${RUN_DIR}/$1 ${2} >> /tmp/out_command.$$ 2>&1 
    13191319 
    13201320#       status=$? 
    13211321#       IGCM_sys_Rsync_out $status 
    13221322 
    1323 #       ${libIGCM}/libIGCM_sys/IGCM_analyse_rsync_out.awk out_rsync 
     1323#       ${libIGCM}/libIGCM_sys/IGCM_analyse_rsync_out.awk /tmp/out_command.$$ 
    13241324#       (( status=status+$? )) 
    13251325 
     
    13291329      [ -f ${2} ] && ls -l ${2} 
    13301330      [ -f ${2}/${1} ] && ls -l ${2}/${1} 
    1331       cat out_rsync 
     1331      cat /tmp/out_command.$$ 
    13321332      IGCM_debug_Exit "IGCM_sys_Put_Out" 
    13331333    else 
     
    13401340      fi 
    13411341 
    1342       \rm out_rsync 
     1342      \rm /tmp/out_command.$$ 
    13431343    fi 
    13441344  fi 
     
    13981398      while [ $i -lt $NB_ESSAI ] ; do 
    13991399        # USUAL WAY 
    1400         \cp $1 $2 > out_rsync 2>&1 
     1400        \cp $1 $2 > /tmp/out_command.$$ 2>&1 
    14011401        status=$? 
    14021402        if [ ${status} -gt 0 ]; then 
     
    14171417      [ -f ${2} ] && ls -l ${2} 
    14181418      [ -f ${2}/${1} ] && ls -l ${2}/${1} 
    1419       cat out_rsync 
     1419      cat /tmp/out_command.$$ 
    14201420      IGCM_debug_Exit "IGCM_sys_PutBuffer_Out" 
    14211421    else 
     
    14281428      fi 
    14291429 
    1430       \rm out_rsync 
     1430      \rm /tmp/out_command.$$ 
    14311431    fi 
    14321432  fi 
     
    14791479    #fi 
    14801480 
    1481     ccc_hsm get ${dm_liste[*]} > out_rsync 2>&1 
     1481    ccc_hsm get ${dm_liste[*]} > /tmp/out_command.$$ 2>&1 
    14821482    status=$? 
    14831483    if [ ${status} -gt 0 ] ; then 
    14841484      echo "WARNING IGCM_sys_Get : error code ${status}" 
    1485       cat out_rsync 
     1485      cat /tmp/out_command.$$ 
    14861486      echo "WARNING IGCM_sys_Get : will stop later if the cp fails." 
    14871487    fi 
    14881488 
    14891489    #if [ ${status} -gt 0 ] ; then 
    1490     #  if [ ! "X$( grep "Lost dmusrcmd connection" out_rsync )" = "X" ] ; then 
    1491     #    cat out_rsync 
     1490    #  if [ ! "X$( grep "Lost dmusrcmd connection" /tmp/out_command.$$ )" = "X" ] ; then 
     1491    #    cat /tmp/out_command.$$ 
    14921492    #    echo "WARNING IGCM_sys_Get : Lost dmusrcmd connection : " 
    14931493    #    sleep 30 
    14941494    #    echo "We try another time" 
    1495     ##    dmget ${dm_liste[*]} > out_rsync 2>&1 
    1496     #    ccc_hsm get ${dm_liste[*]} > out_rsync 2>&1 
     1495    ##    dmget ${dm_liste[*]} > /tmp/out_command.$$ 2>&1 
     1496    #    ccc_hsm get ${dm_liste[*]} > /tmp/out_command.$$ 2>&1 
    14971497    #    status=$? 
    14981498    #    if [ ${status} -gt 0 ] ; then 
    14991499    #      echo "ERROR IGCM_sys_Get : again demigration error :" 
    1500     #      cat out_rsync 
     1500    #      cat /tmp/out_command.$$ 
    15011501    #      IGCM_debug_Exit "IGCM_sys_Get" 
    15021502    #    fi 
    15031503    #  else 
    15041504    #    echo "ERROR IGCM_sys_Get : demigration error :" 
    1505     #    cat out_rsync 
     1505    #    cat /tmp/out_command.$$ 
    15061506    #    IGCM_debug_Exit "IGCM_sys_Get" 
    15071507    #  fi 
     
    15091509 
    15101510    #   #RSYNC WITH NETWORK SSH CALL 
    1511     #   echo ${RSYNC} ${RSYNC_opt} -e ssh ${STOREHOST}:"${dm_liste}" ${STOREHOST}:${RUN_DIR}/${DEST} > out_rsync 2>&1 
    1512     #   ${RSYNC} ${RSYNC_opt} -e ssh ${STOREHOST}:"${dm_liste}" ${STOREHOST}:${RUN_DIR}/${DEST} >> out_rsync 2>&1 
     1511    #   echo ${RSYNC} ${RSYNC_opt} -e ssh ${STOREHOST}:"${dm_liste}" ${STOREHOST}:${RUN_DIR}/${DEST} > /tmp/out_command.$$ 2>&1 
     1512    #   ${RSYNC} ${RSYNC_opt} -e ssh ${STOREHOST}:"${dm_liste}" ${STOREHOST}:${RUN_DIR}/${DEST} >> /tmp/out_command.$$ 2>&1 
    15131513 
    15141514    #   #RSYNC WITH NFS USE 
    1515     #   echo ${RSYNC} ${RSYNC_opt} ${dm_liste} ${RUN_DIR}/${DEST} > out_rsync 2>&1 
    1516     #   ${RSYNC} ${RSYNC_opt} ${dm_liste} ${RUN_DIR}/${DEST} >> out_rsync 2>&1 
     1515    #   echo ${RSYNC} ${RSYNC_opt} ${dm_liste} ${RUN_DIR}/${DEST} > /tmp/out_command.$$ 2>&1 
     1516    #   ${RSYNC} ${RSYNC_opt} ${dm_liste} ${RUN_DIR}/${DEST} >> /tmp/out_command.$$ 2>&1 
    15171517 
    15181518    #   status=$? 
    15191519    #   IGCM_sys_Rsync_out $status 
    15201520 
    1521     #   ${libIGCM}/libIGCM_sys/IGCM_analyse_rsync_out.awk out_rsync 
     1521    #   ${libIGCM}/libIGCM_sys/IGCM_analyse_rsync_out.awk /tmp/out_command.$$ 
    15221522    #   (( status=status+$? )) 
    15231523 
     
    15351535          i=0 
    15361536          while [ $i -lt $NB_ESSAI ] ; do 
    1537             \cp ${target} ${DEST}/${local_file} >> out_rsync 2>&1 
     1537            \cp ${target} ${DEST}/${local_file} >> /tmp/out_command.$$ 2>&1 
    15381538            status=$? 
    15391539            if [ ${status} -gt 0 ]; then 
     
    15481548          if [ ${status} -gt 0 ] ; then 
    15491549            echo "IGCM_sys_Get : error" 
    1550             cat out_rsync 
    1551             \rm out_rsync 
     1550            cat /tmp/out_command.$$ 
     1551            \rm /tmp/out_command.$$ 
    15521552            IGCM_debug_Exit "IGCM_sys_Get" 
    15531553          else 
    1554             \rm out_rsync 
     1554            \rm /tmp/out_command.$$ 
    15551555          fi 
    15561556        fi 
     
    15591559      i=0 
    15601560      while [ $i -lt $NB_ESSAI ] ; do 
    1561         \cp ${dm_liste} ${DEST} >> out_rsync 2>&1 
     1561        \cp ${dm_liste} ${DEST} >> /tmp/out_command.$$ 2>&1 
    15621562        status=$? 
    15631563        if [ ${status} -gt 0 ]; then 
     
    15721572      if [ ${status} -gt 0 ] ; then 
    15731573        echo "IGCM_sys_Get : error" 
    1574         cat out_rsync 
    1575         \rm out_rsync 
     1574        cat /tmp/out_command.$$ 
     1575        \rm /tmp/out_command.$$ 
    15761576        IGCM_debug_Exit "IGCM_sys_Get" 
    15771577      else 
    1578         \rm out_rsync 
     1578        \rm /tmp/out_command.$$ 
    15791579      fi 
    15801580    fi 
     
    16171617        i=0 
    16181618        while [ $i -lt $NB_ESSAI ] ; do 
    1619           \cp ${target} ${DEST}/${local_file} >> out_rsync 2>&1 
     1619          \cp ${target} ${DEST}/${local_file} >> /tmp/out_command.$$ 2>&1 
    16201620          status=$? 
    16211621          if [ ${status} -gt 0 ]; then 
     
    16301630        if [ ${status} -gt 0 ] ; then 
    16311631          echo "IGCM_sys_Get : error" 
    1632           cat out_rsync 
    1633           \rm out_rsync 
     1632          cat /tmp/out_command.$$ 
     1633          \rm /tmp/out_command.$$ 
    16341634          IGCM_debug_Exit "IGCM_sys_GetBuffer" 
    16351635        else 
    1636           \rm out_rsync 
     1636          \rm /tmp/out_command.$$ 
    16371637        fi 
    16381638      done 
     
    16401640      i=0 
    16411641      while [ $i -lt $NB_ESSAI ] ; do 
    1642         \cp ${buf_liste} ${DEST} >> out_rsync 2>&1 
     1642        \cp ${buf_liste} ${DEST} >> /tmp/out_command.$$ 2>&1 
    16431643        status=$? 
    16441644        if [ ${status} -gt 0 ]; then 
     
    16531653      if [ ${status} -gt 0 ] ; then 
    16541654        echo "IGCM_sys_Get : error" 
    1655         cat out_rsync 
    1656         \rm out_rsync 
     1655        cat /tmp/out_command.$$ 
     1656        \rm /tmp/out_command.$$ 
    16571657        IGCM_debug_Exit "IGCM_sys_GetBuffer" 
    16581658      else 
    1659         \rm out_rsync 
     1659        \rm /tmp/out_command.$$ 
    16601660      fi 
    16611661    fi 
     
    18501850  i=0 
    18511851  while [ $i -lt $NB_ESSAI ] ; do 
    1852     ~p86ipsl/X64_CURIE/bin/rebuild -f -o $@ > out_rsync 2>&1 
     1852    ~p86ipsl/X64_CURIE/bin/rebuild -f -o $@ > /tmp/out_command.$$ 2>&1 
    18531853    status=$? 
    18541854    if [ ${status} -gt 0 ] ; then 
    18551855      IGCM_debug_Print 2 "IGCM_sys_rebuild : error code ${status}" 
    1856       cat out_rsync 
    1857       \rm out_rsync 
     1856      cat /tmp/out_command.$$ 
     1857      \rm /tmp/out_command.$$ 
    18581858      IGCM_debug_Print 2 "IGCM_sys_rebuild : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    18591859      firstArg=${1} 
     
    18611861      sleep $DELAI 
    18621862    else 
    1863       \rm out_rsync 
     1863      \rm /tmp/out_command.$$ 
    18641864      break 
    18651865    fi 
     
    23572357  i=0 
    23582358  while [ $i -lt $NB_ESSAI ] ; do 
    2359     ncap2 "$@" > out_rsync 2>&1 
     2359    ncap2 "$@" > /tmp/out_command.$$ 2>&1 
    23602360    status=$? 
    23612361    if [ ${status} -gt 0 ] ; then 
    23622362      IGCM_debug_Print 2 "IGCM_sys_ncap2 : error code ${status}" 
    2363       cat out_rsync 
    2364       \rm out_rsync 
     2363      cat /tmp/out_command.$$ 
     2364      \rm /tmp/out_command.$$ 
    23652365      IGCM_debug_Print 2 "IGCM_sys_ncap2 : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    23662366      sleep $DELAI 
    23672367    else 
    2368       \rm out_rsync 
     2368      \rm /tmp/out_command.$$ 
    23692369      break 
    23702370    fi 
     
    23992399  i=0 
    24002400  while [ $i -lt $NB_ESSAI ] ; do 
    2401     ncatted "$@" > out_rsync 2>&1 
     2401    ncatted "$@" > /tmp/out_command.$$ 2>&1 
    24022402    status=$? 
    24032403    if [ ${status} -gt 0 ] ; then 
    24042404      IGCM_debug_Print 2 "IGCM_sys_ncatted : error code ${status}" 
    2405       cat out_rsync 
    2406       \rm out_rsync 
     2405      cat /tmp/out_command.$$ 
     2406      \rm /tmp/out_command.$$ 
    24072407      IGCM_debug_Print 2 "IGCM_sys_ncatted : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    24082408      sleep $DELAI 
    24092409    else 
    2410       \rm out_rsync 
     2410      \rm /tmp/out_command.$$ 
    24112411      break 
    24122412    fi 
     
    24412441  i=0 
    24422442  while [ $i -lt $NB_ESSAI ] ; do 
    2443     ncbo $@ > out_rsync 2>&1 
     2443    ncbo $@ > /tmp/out_command.$$ 2>&1 
    24442444    status=$? 
    24452445    if [ ${status} -gt 0 ] ; then 
    24462446      IGCM_debug_Print 2 "IGCM_sys_ncbo : error code ${status}" 
    2447       cat out_rsync 
    2448       \rm out_rsync 
     2447      cat /tmp/out_command.$$ 
     2448      \rm /tmp/out_command.$$ 
    24492449      IGCM_debug_Print 2 "IGCM_sys_ncbo : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    24502450      sleep $DELAI 
    24512451    else 
    2452       \rm out_rsync 
     2452      \rm /tmp/out_command.$$ 
    24532453      break 
    24542454    fi 
     
    24832483  i=0 
    24842484  while [ $i -lt $NB_ESSAI ] ; do 
    2485     ncdiff $@ > out_rsync 2>&1 
     2485    ncdiff $@ > /tmp/out_command.$$ 2>&1 
    24862486    status=$? 
    24872487    if [ ${status} -gt 0 ] ; then 
    24882488      IGCM_debug_Print 2 "IGCM_sys_ncdiff : error code ${status}" 
    2489       cat out_rsync 
    2490       \rm out_rsync 
     2489      cat /tmp/out_command.$$ 
     2490      \rm /tmp/out_command.$$ 
    24912491      IGCM_debug_Print 2 "IGCM_sys_ncdiff : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    24922492      sleep $DELAI 
    24932493    else 
    2494       \rm out_rsync 
     2494      \rm /tmp/out_command.$$ 
    24952495      break 
    24962496    fi 
     
    25252525  i=0 
    25262526  while [ $i -lt $NB_ESSAI ] ; do 
    2527     ncea $@ > out_rsync 2>&1 
     2527    ncea $@ > /tmp/out_command.$$ 2>&1 
    25282528    status=$? 
    25292529    if [ ${status} -gt 0 ] ; then 
    25302530      IGCM_debug_Print 2 "IGCM_sys_ncea : error code ${status}" 
    2531       cat out_rsync 
    2532       \rm out_rsync 
     2531      cat /tmp/out_command.$$ 
     2532      \rm /tmp/out_command.$$ 
    25332533      IGCM_debug_Print 2 "IGCM_sys_ncea : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    25342534      sleep $DELAI 
    25352535    else 
    2536       \rm out_rsync 
     2536      \rm /tmp/out_command.$$ 
    25372537      break 
    25382538    fi 
     
    25672567  i=0 
    25682568  while [ $i -lt $NB_ESSAI ] ; do 
    2569     ncecat $@ > out_rsync 2>&1 
     2569    ncecat $@ > /tmp/out_command.$$ 2>&1 
    25702570    status=$? 
    25712571    if [ ${status} -gt 0 ] ; then 
    25722572      IGCM_debug_Print 2 "IGCM_sys_ncecat : error code ${status}" 
    2573       cat out_rsync 
    2574       \rm out_rsync 
     2573      cat /tmp/out_command.$$ 
     2574      \rm /tmp/out_command.$$ 
    25752575      IGCM_debug_Print 2 "IGCM_sys_ncecat : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    25762576      sleep $DELAI 
    25772577    else 
    2578       \rm out_rsync 
     2578      \rm /tmp/out_command.$$ 
    25792579      break 
    25802580    fi 
     
    26092609  i=0 
    26102610  while [ $i -lt $NB_ESSAI ] ; do 
    2611     ncflint $@ > out_rsync 2>&1 
     2611    ncflint $@ > /tmp/out_command.$$ 2>&1 
    26122612    status=$? 
    26132613    if [ ${status} -gt 0 ] ; then 
    26142614      IGCM_debug_Print 2 "IGCM_sys_ncflint : error code ${status}" 
    2615       cat out_rsync 
    2616       \rm out_rsync 
     2615      cat /tmp/out_command.$$ 
     2616      \rm /tmp/out_command.$$ 
    26172617      IGCM_debug_Print 2 "IGCM_sys_ncflint : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    26182618      sleep $DELAI 
    26192619    else 
    2620       \rm out_rsync 
     2620      \rm /tmp/out_command.$$ 
    26212621      break 
    26222622    fi 
     
    26512651  i=0 
    26522652  while [ $i -lt $NB_ESSAI ] ; do 
    2653     ncks $@ > out_rsync 2>&1 
     2653    ncks $@ > /tmp/out_command.$$ 2>&1 
    26542654    status=$? 
    26552655    if [ ${status} -gt 0 ] ; then 
    26562656      IGCM_debug_Print 2 "IGCM_sys_ncks : error code ${status}" 
    2657       cat out_rsync 
    2658       \rm out_rsync 
     2657      cat /tmp/out_command.$$ 
     2658      \rm /tmp/out_command.$$ 
    26592659      IGCM_debug_Print 2 "IGCM_sys_ncks : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    26602660      sleep $DELAI 
    26612661    else 
    2662       \rm out_rsync 
     2662      \rm /tmp/out_command.$$ 
    26632663      break 
    26642664    fi 
     
    26932693  i=0 
    26942694  while [ $i -lt $NB_ESSAI ] ; do 
    2695     ncpdq $@ > out_rsync 2>&1 
     2695    ncpdq $@ > /tmp/out_command.$$ 2>&1 
    26962696    status=$? 
    26972697    if [ ${status} -gt 0 ] ; then 
    26982698      IGCM_debug_Print 2 "IGCM_sys_ncpdq : error code ${status}" 
    2699       cat out_rsync 
    2700       \rm out_rsync 
     2699      cat /tmp/out_command.$$ 
     2700      \rm /tmp/out_command.$$ 
    27012701      IGCM_debug_Print 2 "IGCM_sys_ncpdq : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    27022702      sleep $DELAI 
    27032703    else 
    2704       \rm out_rsync 
     2704      \rm /tmp/out_command.$$ 
    27052705      break 
    27062706    fi 
     
    27352735  i=0 
    27362736  while [ $i -lt $NB_ESSAI ] ; do 
    2737     ncra $@ > out_rsync 2>&1 
     2737    ncra $@ > /tmp/out_command.$$ 2>&1 
    27382738    status=$? 
    27392739    if [ ${status} -gt 0 ] ; then 
    27402740      IGCM_debug_Print 2 "IGCM_sys_ncra : error code ${status}" 
    2741       cat out_rsync 
    2742       \rm out_rsync 
     2741      cat /tmp/out_command.$$ 
     2742      \rm /tmp/out_command.$$ 
    27432743      IGCM_debug_Print 2 "IGCM_sys_ncra : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    27442744      sleep $DELAI 
    27452745    else 
    2746       \rm out_rsync 
     2746      \rm /tmp/out_command.$$ 
    27472747      break 
    27482748    fi 
     
    27772777  i=0 
    27782778  while [ $i -lt $NB_ESSAI ] ; do 
    2779     ncrcat $@ > out_rsync 2>&1 
     2779    ncrcat $@ > /tmp/out_command.$$ 2>&1 
    27802780    status=$? 
    27812781    if [ ${status} -gt 0 ] ; then 
    27822782      IGCM_debug_Print 2 "IGCM_sys_ncrcat : error code ${status}" 
    2783       cat out_rsync 
    2784       \rm out_rsync 
     2783      cat /tmp/out_command.$$ 
     2784      \rm /tmp/out_command.$$ 
    27852785      IGCM_debug_Print 2 "IGCM_sys_ncrcat : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    27862786      sleep $DELAI 
    2787     elif [ ! "X$( grep "WARNING Intra-file non-monotonicity" out_rsync )" = "X" ] ; then 
     2787    elif [ ! "X$( grep "WARNING Intra-file non-monotonicity" /tmp/out_command.$$ )" = "X" ] ; then 
    27882788      IGCM_debug_Print 2 "IGCM_sys_ncrcat : WARNING Intra-file non-monotonicity" 
    2789       cat out_rsync 
     2789      cat /tmp/out_command.$$ 
    27902790      # remove files having corrupted time axis 
    27912791      eval lastArg=\${$#} 
    27922792      IGCM_debug_Print 2 "IGCM_sys_ncrcat : Delete ${lastArg}" 
    27932793      \rm ${lastArg} 
    2794       \rm out_rsync 
     2794      \rm /tmp/out_command.$$ 
    27952795      IGCM_debug_Print 2 "IGCM_sys_ncrcat : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    27962796      sleep $DELAI 
    27972797    else 
    2798       \rm out_rsync 
     2798      \rm /tmp/out_command.$$ 
    27992799      break 
    28002800    fi 
     
    28292829  i=0 
    28302830  while [ $i -lt $NB_ESSAI ] ; do 
    2831     ncrename $@ > out_rsync 2>&1 
     2831    ncrename $@ > /tmp/out_command.$$ 2>&1 
    28322832    status=$? 
    28332833    if [ ${status} -gt 0 ] ; then 
    28342834      IGCM_debug_Print 2 "IGCM_sys_ncrename : error code ${status}" 
    2835       cat out_rsync 
    2836       \rm out_rsync 
     2835      cat /tmp/out_command.$$ 
     2836      \rm /tmp/out_command.$$ 
    28372837      IGCM_debug_Print 2 "IGCM_sys_ncrename : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    28382838      sleep $DELAI 
    28392839    else 
    2840       \rm out_rsync 
     2840      \rm /tmp/out_command.$$ 
    28412841      break 
    28422842    fi 
     
    28712871  i=0 
    28722872  while [ $i -lt $NB_ESSAI ] ; do 
    2873     ncwa $@ > out_rsync 2>&1 
     2873    ncwa $@ > /tmp/out_command.$$ 2>&1 
    28742874    status=$? 
    28752875    if [ ${status} -gt 0 ] ; then 
    28762876      IGCM_debug_Print 2 "IGCM_sys_ncwa : error code ${status}" 
    2877       cat out_rsync 
    2878       \rm out_rsync 
     2877      cat /tmp/out_command.$$ 
     2878      \rm /tmp/out_command.$$ 
    28792879      IGCM_debug_Print 2 "IGCM_sys_ncwa : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    28802880      sleep $DELAI 
    28812881    else 
    2882       \rm out_rsync 
     2882      \rm /tmp/out_command.$$ 
    28832883      break 
    28842884    fi 
     
    29102910  typeset status 
    29112911 
    2912   \cdo $@ > out_rsync 2>&1 
     2912  \cdo $@ > /tmp/out_command.$$ 2>&1 
    29132913  status=$? 
    29142914  if [ ${status} -gt 0 ] ; then 
    29152915    echo "IGCM_sys_cdo : error code ${status}" 
    2916     cat out_rsync 
    2917     \rm out_rsync 
     2916    cat /tmp/out_command.$$ 
     2917    \rm /tmp/out_command.$$ 
    29182918    IGCM_debug_PopStack "IGCM_sys_cdo" 
    29192919    return 1 
  • 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 
  • trunk/libIGCM/libIGCM_sys/libIGCM_sys_iitm.ksh

    r936 r938  
    765765  mkdir -p ${HOME}/MIRROR/${PATHlibIGCM} 
    766766 
    767   echo ${RSYNC} ${RSYNC_opt} ${libIGCM} ${HOME}/MIRROR/${PATHlibIGCM} > out_rsync 2>&1 
    768   ${RSYNC} ${RSYNC_opt} ${libIGCM} ${HOME}/MIRROR/${PATHlibIGCM} >> out_rsync 2>&1 
     767  echo ${RSYNC} ${RSYNC_opt} ${libIGCM} ${HOME}/MIRROR/${PATHlibIGCM} > /tmp/out_command.$$ 2>&1 
     768  ${RSYNC} ${RSYNC_opt} ${libIGCM} ${HOME}/MIRROR/${PATHlibIGCM} >> /tmp/out_command.$$ 2>&1 
    769769  status=$? 
    770770 
    771771  if [ ${status} -gt 0 ] ; then 
    772772    echo "IGCM_sys_Mirror_libIGCM Warning : no libIGCM on frontend." 
    773     cat out_rsync 
     773    cat /tmp/out_command.$$ 
    774774  fi 
    775775  IGCM_debug_PopStack "IGCM_sys_Mirror_libIGCM" 
     
    789789  typeset status 
    790790 
    791   echo cp $@ > out_rsync 2>&1 
    792   \cp $@ >> out_rsync 2>&1 
     791  echo cp $@ > /tmp/out_command.$$ 2>&1 
     792  \cp $@ >> /tmp/out_command.$$ 2>&1 
    793793  status=$? 
    794794 
    795795  if [ ${status} -gt 0 ] ; then 
    796796    echo "IGCM_sys_Cp : error code ${status}" 
    797     cat out_rsync 
     797    cat /tmp/out_command.$$ 
    798798    IGCM_debug_Exit "IGCM_sys_Cp" 
    799799  else 
    800     \rm out_rsync 
     800    \rm /tmp/out_command.$$ 
    801801  fi 
    802802  IGCM_debug_PopStack "IGCM_sys_Cp" 
     
    816816  typeset status 
    817817 
    818   echo rm $@ > out_rsync 2>&1 
    819   \rm $@ >> out_rsync 2>&1 
     818  echo rm $@ > /tmp/out_command.$$ 2>&1 
     819  \rm $@ >> /tmp/out_command.$$ 2>&1 
    820820  status=$? 
    821821 
    822822  if [ ${status} -gt 0 ] ; then 
    823823    echo "IGCM_sys_Rm : error code ${status}" 
    824     cat out_rsync 
     824    cat /tmp/out_command.$$ 
    825825    IGCM_debug_Exit "IGCM_sys_Rm" 
    826826  else 
    827     \rm out_rsync 
     827    \rm /tmp/out_command.$$ 
    828828  fi 
    829829  IGCM_debug_PopStack "IGCM_sys_Rm" 
     
    844844  typeset status 
    845845 
    846   echo rm $@ > out_rsync 2>&1 
    847   \rm $@ >> out_rsync 2>&1 
     846  echo rm $@ > /tmp/out_command.$$ 2>&1 
     847  \rm $@ >> /tmp/out_command.$$ 2>&1 
    848848  status=$? 
    849849 
    850850  if [ ${status} -gt 0 ] ; then 
    851851    echo "IGCM_sys_RmRunDir : rm error code is ${status}." 
    852     cat out_rsync 
     852    cat /tmp/out_command.$$ 
    853853    IGCM_debug_Exit "IGCM_sys_RmRunDir" 
    854854  else 
    855     \rm out_rsync 
     855    \rm /tmp/out_command.$$ 
    856856  fi 
    857857  IGCM_debug_PopStack "IGCM_sys_RmRunDir" 
     
    873873    typeset status 
    874874 
    875     echo mv $@ > out_rsync 2>&1 
    876     \mv $@ >> out_rsync 2>&1 
     875    echo mv $@ > /tmp/out_command.$$ 2>&1 
     876    \mv $@ >> /tmp/out_command.$$ 2>&1 
    877877    status=$? 
    878878 
    879879    if [ ${status} -gt 0 ] ; then 
    880880      echo "IGCM_sys_Mv : error code ${status}" 
    881       cat out_rsync 
     881      cat /tmp/out_command.$$ 
    882882      IGCM_debug_Exit "IGCM_sys_Mv" 
    883883    else 
    884       \rm out_rsync 
     884      \rm /tmp/out_command.$$ 
    885885    fi 
    886886  fi 
     
    912912    # 
    913913    #USUAL WAY 
    914     \cp -r $1 $2 > out_rsync 2>&1 
     914    \cp -r $1 $2 > /tmp/out_command.$$ 2>&1 
    915915    status=$? 
    916916 
    917917    if [ ${status} -gt 0 ] ; then 
    918918      IGCM_debug_Print 2 "IGCM_sys_Put_Dir : cp failed error code ${status}" 
    919       cat out_rsync 
     919      cat /tmp/out_command.$$ 
    920920      IGCM_debug_Exit "IGCM_sys_Put_Dir" 
    921921    else 
    922       \rm out_rsync 
     922      \rm /tmp/out_command.$$ 
    923923    fi 
    924924  fi 
     
    946946 
    947947    #USUAL WAY 
    948     \cp -ur $1 $2 > out_rsync 2>&1 
     948    \cp -ur $1 $2 > /tmp/out_command.$$ 2>&1 
    949949    status=$? 
    950950 
    951951    if [ ${status} -gt 0 ] ; then 
    952952      IGCM_debug_Print 2 "IGCM_sys_Get_Dir : cp failed error code ${status}" 
    953       cat out_rsync 
     953      cat /tmp/out_command.$$ 
    954954      IGCM_debug_Exit "IGCM_sys_Get_Dir" 
    955955    else 
    956       \rm out_rsync 
     956      \rm /tmp/out_command.$$ 
    957957    fi 
    958958  fi 
     
    985985    i=0 
    986986    while [ $i -lt $NB_ESSAI ] ; do 
    987       \cp -urL $1 $2 > out_rsync 2>&1 
     987      \cp -urL $1 $2 > /tmp/out_command.$$ 2>&1 
    988988      status=$? 
    989989      if [ ${status} -gt 0 ]; then 
     
    999999    if [ ${status} -gt 0 ] ; then 
    10001000      echo "IGCM_sys_Get_Master : error." 
    1001       cat out_rsync 
     1001      cat /tmp/out_command.$$ 
    10021002      IGCM_debug_Exit "IGCM_sys_Get_Master" 
    10031003    else 
    1004       \rm out_rsync 
     1004      \rm /tmp/out_command.$$ 
    10051005    fi 
    10061006  fi 
     
    10411041    # 
    10421042    #USUAL WAY 
    1043     \cp $1 $2 > out_rsync 2>&1 
     1043    \cp $1 $2 > /tmp/out_command.$$ 2>&1 
    10441044    status=$? 
    10451045 
    10461046    if [ ${status} -gt 0 ] ; then 
    10471047      echo "IGCM_sys_Put_Rest : cp failed error code ${status}" 
    1048       cat out_rsync 
     1048      cat /tmp/out_command.$$ 
    10491049      IGCM_debug_Exit "IGCM_sys_Put_Rest" 
    10501050    else 
    1051       \rm out_rsync 
     1051      \rm /tmp/out_command.$$ 
    10521052    fi 
    10531053  fi 
     
    10801080    # 
    10811081    # USUAL WAY 
    1082     \cp $1 $2 > out_rsync 2>&1 
     1082    \cp $1 $2 > /tmp/out_command.$$ 2>&1 
    10831083    status=$? 
    10841084 
     
    10871087      [ -f ${2} ] && ls -l ${2} 
    10881088      [ -f ${2}/${1} ] && ls -l ${2}/${1} 
    1089       cat out_rsync 
     1089      cat /tmp/out_command.$$ 
    10901090      IGCM_debug_Exit "IGCM_sys_PutBuffer_Rest" 
    10911091    else 
    1092       \rm out_rsync 
     1092      \rm /tmp/out_command.$$ 
    10931093    fi 
    10941094  fi 
     
    11361136    # 
    11371137    #USUAL WAY 
    1138     \cp $1 $2 > out_rsync 2>&1 
     1138    \cp $1 $2 > /tmp/out_command.$$ 2>&1 
    11391139    status=$? 
    11401140 
    11411141    if [ ${status} -gt 0 ] ; then 
    11421142      IGCM_debug_Print 2 "IGCM_sys_Put_Out : cp failed error code ${status}" 
    1143       cat out_rsync 
     1143      cat /tmp/out_command.$$ 
    11441144      IGCM_debug_Exit "IGCM_sys_Put_Out" 
    11451145    else 
    1146       \rm out_rsync 
     1146      \rm /tmp/out_command.$$ 
    11471147    fi 
    11481148  fi 
     
    12021202      while [ $i -lt $NB_ESSAI ] ; do 
    12031203        # USUAL WAY 
    1204         \cp $1 $2 > out_rsync 2>&1 
     1204        \cp $1 $2 > /tmp/out_command.$$ 2>&1 
    12051205        status=$? 
    12061206        if [ ${status} -gt 0 ]; then 
     
    12211221      [ -f ${2} ] && ls -l ${2} 
    12221222      [ -f ${2}/${1} ] && ls -l ${2}/${1} 
    1223       cat out_rsync 
     1223      cat /tmp/out_command.$$ 
    12241224      IGCM_debug_Exit "IGCM_sys_PutBuffer_Out" 
    12251225    else 
     
    12321232      fi 
    12331233 
    1234       \rm out_rsync 
     1234      \rm /tmp/out_command.$$ 
    12351235    fi 
    12361236  fi 
     
    12771277 
    12781278    #USUAL WAY 
    1279     \cp ${dm_liste[*]} ${DEST} > out_rsync 2>&1 
     1279    \cp ${dm_liste[*]} ${DEST} > /tmp/out_command.$$ 2>&1 
    12801280    status=$? 
    12811281 
    12821282    if [ ${status} -gt 0 ] ; then 
    12831283      IGCM_debug_Print 2 "IGCM_sys_Get : cp failed error code ${status}" 
    1284       cat out_rsync 
     1284      cat /tmp/out_command.$$ 
    12851285      IGCM_debug_Exit "IGCM_sys_Get" 
    12861286    else 
    1287       \rm out_rsync 
     1287      \rm /tmp/out_command.$$ 
    12881288    fi 
    12891289  fi 
     
    13251325        i=0 
    13261326        while [ $i -lt $NB_ESSAI ] ; do 
    1327           \cp ${target} ${DEST}/${local_file} >> out_rsync 2>&1 
     1327          \cp ${target} ${DEST}/${local_file} >> /tmp/out_command.$$ 2>&1 
    13281328          status=$? 
    13291329          if [ ${status} -gt 0 ]; then 
     
    13381338        if [ ${status} -gt 0 ] ; then 
    13391339          echo "IGCM_sys_Get : error" 
    1340           cat out_rsync 
    1341           \rm out_rsync 
     1340          cat /tmp/out_command.$$ 
     1341          \rm /tmp/out_command.$$ 
    13421342          IGCM_debug_Exit "IGCM_sys_GetBuffer" 
    13431343        else 
    1344           \rm out_rsync 
     1344          \rm /tmp/out_command.$$ 
    13451345        fi 
    13461346      done 
     
    13481348      i=0 
    13491349      while [ $i -lt $NB_ESSAI ] ; do 
    1350         \cp ${buf_liste} ${DEST} >> out_rsync 2>&1 
     1350        \cp ${buf_liste} ${DEST} >> /tmp/out_command.$$ 2>&1 
    13511351        status=$? 
    13521352        if [ ${status} -gt 0 ]; then 
     
    13611361      if [ ${status} -gt 0 ] ; then 
    13621362        echo "IGCM_sys_Get : error" 
    1363         cat out_rsync 
    1364         \rm out_rsync 
     1363        cat /tmp/out_command.$$ 
     1364        \rm /tmp/out_command.$$ 
    13651365        IGCM_debug_Exit "IGCM_sys_GetBuffer" 
    13661366      else 
    1367         \rm out_rsync 
     1367        \rm /tmp/out_command.$$ 
    13681368      fi 
    13691369    fi 
     
    14581458  i=0 
    14591459  while [ $i -lt $NB_ESSAI ] ; do 
    1460     /gpfs1/home/sebastien/REBUILD/rebuild -f -o $@ > out_rsync 2>&1 
     1460    /gpfs1/home/sebastien/REBUILD/rebuild -f -o $@ > /tmp/out_command.$$ 2>&1 
    14611461    status=$? 
    14621462    if [ ${status} -gt 0 ] ; then 
    14631463      IGCM_debug_Print 2 "IGCM_sys_rebuild : error code ${status}" 
    1464       cat out_rsync 
    1465       \rm out_rsync 
     1464      cat /tmp/out_command.$$ 
     1465      \rm /tmp/out_command.$$ 
    14661466      IGCM_debug_Print 2 "IGCM_sys_rebuild : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    14671467      firstArg=${1} 
     
    14691469      sleep $DELAI 
    14701470    else 
    1471       \rm out_rsync 
     1471      \rm /tmp/out_command.$$ 
    14721472      break 
    14731473    fi 
     
    18831883  i=0 
    18841884  while [ $i -lt $NB_ESSAI ] ; do 
    1885     ncap2 "$@" > out_rsync 2>&1 
     1885    ncap2 "$@" > /tmp/out_command.$$ 2>&1 
    18861886    status=$? 
    18871887    if [ ${status} -gt 0 ] ; then 
    18881888      IGCM_debug_Print 2 "IGCM_sys_ncap2 : error code ${status}" 
    1889       cat out_rsync 
    1890       \rm out_rsync 
     1889      cat /tmp/out_command.$$ 
     1890      \rm /tmp/out_command.$$ 
    18911891      IGCM_debug_Print 2 "IGCM_sys_ncap2 : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    18921892      sleep $DELAI 
    18931893    else 
    1894       \rm out_rsync 
     1894      \rm /tmp/out_command.$$ 
    18951895      break 
    18961896    fi 
     
    19251925  i=0 
    19261926  while [ $i -lt $NB_ESSAI ] ; do 
    1927     ncatted "$@" > out_rsync 2>&1 
     1927    ncatted "$@" > /tmp/out_command.$$ 2>&1 
    19281928    status=$? 
    19291929    if [ ${status} -gt 0 ] ; then 
    19301930      IGCM_debug_Print 2 "IGCM_sys_ncatted : error code ${status}" 
    1931       cat out_rsync 
    1932       \rm out_rsync 
     1931      cat /tmp/out_command.$$ 
     1932      \rm /tmp/out_command.$$ 
    19331933      IGCM_debug_Print 2 "IGCM_sys_ncatted : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    19341934      sleep $DELAI 
    19351935    else 
    1936       \rm out_rsync 
     1936      \rm /tmp/out_command.$$ 
    19371937      break 
    19381938    fi 
     
    19671967  i=0 
    19681968  while [ $i -lt $NB_ESSAI ] ; do 
    1969     ncbo $@ > out_rsync 2>&1 
     1969    ncbo $@ > /tmp/out_command.$$ 2>&1 
    19701970    status=$? 
    19711971    if [ ${status} -gt 0 ] ; then 
    19721972      IGCM_debug_Print 2 "IGCM_sys_ncbo : error code ${status}" 
    1973       cat out_rsync 
    1974       \rm out_rsync 
     1973      cat /tmp/out_command.$$ 
     1974      \rm /tmp/out_command.$$ 
    19751975      IGCM_debug_Print 2 "IGCM_sys_ncbo : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    19761976      sleep $DELAI 
    19771977    else 
    1978       \rm out_rsync 
     1978      \rm /tmp/out_command.$$ 
    19791979      break 
    19801980    fi 
     
    20092009  i=0 
    20102010  while [ $i -lt $NB_ESSAI ] ; do 
    2011     ncdiff $@ > out_rsync 2>&1 
     2011    ncdiff $@ > /tmp/out_command.$$ 2>&1 
    20122012    status=$? 
    20132013    if [ ${status} -gt 0 ] ; then 
    20142014      IGCM_debug_Print 2 "IGCM_sys_ncdiff : error code ${status}" 
    2015       cat out_rsync 
    2016       \rm out_rsync 
     2015      cat /tmp/out_command.$$ 
     2016      \rm /tmp/out_command.$$ 
    20172017      IGCM_debug_Print 2 "IGCM_sys_ncdiff : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    20182018      sleep $DELAI 
    20192019    else 
    2020       \rm out_rsync 
     2020      \rm /tmp/out_command.$$ 
    20212021      break 
    20222022    fi 
     
    20512051  i=0 
    20522052  while [ $i -lt $NB_ESSAI ] ; do 
    2053     ncea $@ > out_rsync 2>&1 
     2053    ncea $@ > /tmp/out_command.$$ 2>&1 
    20542054    status=$? 
    20552055    if [ ${status} -gt 0 ] ; then 
    20562056      IGCM_debug_Print 2 "IGCM_sys_ncea : error code ${status}" 
    2057       cat out_rsync 
    2058       \rm out_rsync 
     2057      cat /tmp/out_command.$$ 
     2058      \rm /tmp/out_command.$$ 
    20592059      IGCM_debug_Print 2 "IGCM_sys_ncea : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    20602060      sleep $DELAI 
    20612061    else 
    2062       \rm out_rsync 
     2062      \rm /tmp/out_command.$$ 
    20632063      break 
    20642064    fi 
     
    20932093  i=0 
    20942094  while [ $i -lt $NB_ESSAI ] ; do 
    2095     ncecat $@ > out_rsync 2>&1 
     2095    ncecat $@ > /tmp/out_command.$$ 2>&1 
    20962096    status=$? 
    20972097    if [ ${status} -gt 0 ] ; then 
    20982098      IGCM_debug_Print 2 "IGCM_sys_ncecat : error code ${status}" 
    2099       cat out_rsync 
    2100       \rm out_rsync 
     2099      cat /tmp/out_command.$$ 
     2100      \rm /tmp/out_command.$$ 
    21012101      IGCM_debug_Print 2 "IGCM_sys_ncecat : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    21022102      sleep $DELAI 
    21032103    else 
    2104       \rm out_rsync 
     2104      \rm /tmp/out_command.$$ 
    21052105      break 
    21062106    fi 
     
    21352135  i=0 
    21362136  while [ $i -lt $NB_ESSAI ] ; do 
    2137     ncflint $@ > out_rsync 2>&1 
     2137    ncflint $@ > /tmp/out_command.$$ 2>&1 
    21382138    status=$? 
    21392139    if [ ${status} -gt 0 ] ; then 
    21402140      IGCM_debug_Print 2 "IGCM_sys_ncflint : error code ${status}" 
    2141       cat out_rsync 
    2142       \rm out_rsync 
     2141      cat /tmp/out_command.$$ 
     2142      \rm /tmp/out_command.$$ 
    21432143      IGCM_debug_Print 2 "IGCM_sys_ncflint : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    21442144      sleep $DELAI 
    21452145    else 
    2146       \rm out_rsync 
     2146      \rm /tmp/out_command.$$ 
    21472147      break 
    21482148    fi 
     
    21772177  i=0 
    21782178  while [ $i -lt $NB_ESSAI ] ; do 
    2179     ncks $@ > out_rsync 2>&1 
     2179    ncks $@ > /tmp/out_command.$$ 2>&1 
    21802180    status=$? 
    21812181    if [ ${status} -gt 0 ] ; then 
    21822182      IGCM_debug_Print 2 "IGCM_sys_ncks : error code ${status}" 
    2183       cat out_rsync 
    2184       \rm out_rsync 
     2183      cat /tmp/out_command.$$ 
     2184      \rm /tmp/out_command.$$ 
    21852185      IGCM_debug_Print 2 "IGCM_sys_ncks : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    21862186      sleep $DELAI 
    21872187    else 
    2188       \rm out_rsync 
     2188      \rm /tmp/out_command.$$ 
    21892189      break 
    21902190    fi 
     
    22192219  i=0 
    22202220  while [ $i -lt $NB_ESSAI ] ; do 
    2221     ncpdq $@ > out_rsync 2>&1 
     2221    ncpdq $@ > /tmp/out_command.$$ 2>&1 
    22222222    status=$? 
    22232223    if [ ${status} -gt 0 ] ; then 
    22242224      IGCM_debug_Print 2 "IGCM_sys_ncpdq : error code ${status}" 
    2225       cat out_rsync 
    2226       \rm out_rsync 
     2225      cat /tmp/out_command.$$ 
     2226      \rm /tmp/out_command.$$ 
    22272227      IGCM_debug_Print 2 "IGCM_sys_ncpdq : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    22282228      sleep $DELAI 
    22292229    else 
    2230       \rm out_rsync 
     2230      \rm /tmp/out_command.$$ 
    22312231      break 
    22322232    fi 
     
    22612261  i=0 
    22622262  while [ $i -lt $NB_ESSAI ] ; do 
    2263     ncra $@ > out_rsync 2>&1 
     2263    ncra $@ > /tmp/out_command.$$ 2>&1 
    22642264    status=$? 
    22652265    if [ ${status} -gt 0 ] ; then 
    22662266      IGCM_debug_Print 2 "IGCM_sys_ncra : error code ${status}" 
    2267       cat out_rsync 
    2268       \rm out_rsync 
     2267      cat /tmp/out_command.$$ 
     2268      \rm /tmp/out_command.$$ 
    22692269      IGCM_debug_Print 2 "IGCM_sys_ncra : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    22702270      sleep $DELAI 
    22712271    else 
    2272       \rm out_rsync 
     2272      \rm /tmp/out_command.$$ 
    22732273      break 
    22742274    fi 
     
    23032303  i=0 
    23042304  while [ $i -lt $NB_ESSAI ] ; do 
    2305     ncrcat $@ > out_rsync 2>&1 
     2305    ncrcat $@ > /tmp/out_command.$$ 2>&1 
    23062306    status=$? 
    23072307    if [ ${status} -gt 0 ] ; then 
    23082308      IGCM_debug_Print 2 "IGCM_sys_ncrcat : error code ${status}" 
    2309       cat out_rsync 
    2310       \rm out_rsync 
     2309      cat /tmp/out_command.$$ 
     2310      \rm /tmp/out_command.$$ 
    23112311      IGCM_debug_Print 2 "IGCM_sys_ncrcat : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    23122312      sleep $DELAI 
    2313     elif [ ! "X$( grep "WARNING Intra-file non-monotonicity" out_rsync )" = "X" ] ; then 
     2313    elif [ ! "X$( grep "WARNING Intra-file non-monotonicity" /tmp/out_command.$$ )" = "X" ] ; then 
    23142314      IGCM_debug_Print 2 "IGCM_sys_ncrcat : WARNING Intra-file non-monotonicity" 
    2315       cat out_rsync 
     2315      cat /tmp/out_command.$$ 
    23162316      # remove files having corrupted time axis 
    23172317      eval lastArg=\${$#} 
    23182318      IGCM_debug_Print 2 "IGCM_sys_ncrcat : Delete ${lastArg}" 
    23192319      \rm ${lastArg} 
    2320       \rm out_rsync 
     2320      \rm /tmp/out_command.$$ 
    23212321      IGCM_debug_Print 2 "IGCM_sys_ncrcat : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    23222322      sleep $DELAI 
    23232323    else 
    2324       \rm out_rsync 
     2324      \rm /tmp/out_command.$$ 
    23252325      break 
    23262326    fi 
     
    23552355  i=0 
    23562356  while [ $i -lt $NB_ESSAI ] ; do 
    2357     ncrename $@ > out_rsync 2>&1 
     2357    ncrename $@ > /tmp/out_command.$$ 2>&1 
    23582358    status=$? 
    23592359    if [ ${status} -gt 0 ] ; then 
    23602360      IGCM_debug_Print 2 "IGCM_sys_ncrename : error code ${status}" 
    2361       cat out_rsync 
    2362       \rm out_rsync 
     2361      cat /tmp/out_command.$$ 
     2362      \rm /tmp/out_command.$$ 
    23632363      IGCM_debug_Print 2 "IGCM_sys_ncrename : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    23642364      sleep $DELAI 
    23652365    else 
    2366       \rm out_rsync 
     2366      \rm /tmp/out_command.$$ 
    23672367      break 
    23682368    fi 
     
    23972397  i=0 
    23982398  while [ $i -lt $NB_ESSAI ] ; do 
    2399     ncwa $@ > out_rsync 2>&1 
     2399    ncwa $@ > /tmp/out_command.$$ 2>&1 
    24002400    status=$? 
    24012401    if [ ${status} -gt 0 ] ; then 
    24022402      IGCM_debug_Print 2 "IGCM_sys_ncwa : error code ${status}" 
    2403       cat out_rsync 
    2404       \rm out_rsync 
     2403      cat /tmp/out_command.$$ 
     2404      \rm /tmp/out_command.$$ 
    24052405      IGCM_debug_Print 2 "IGCM_sys_ncwa : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    24062406      sleep $DELAI 
    24072407    else 
    2408       \rm out_rsync 
     2408      \rm /tmp/out_command.$$ 
    24092409      break 
    24102410    fi 
     
    24362436  typeset status 
    24372437 
    2438   \cdo $@ > out_rsync 2>&1 
     2438  \cdo $@ > /tmp/out_command.$$ 2>&1 
    24392439  status=$? 
    24402440  if [ ${status} -gt 0 ] ; then 
    24412441    echo "IGCM_sys_cdo : error code ${status}" 
    2442     cat out_rsync 
    2443     \rm out_rsync 
     2442    cat /tmp/out_command.$$ 
     2443    \rm /tmp/out_command.$$ 
    24442444    IGCM_debug_PopStack "IGCM_sys_cdo" 
    24452445    return 1 
  • trunk/libIGCM/libIGCM_sys/libIGCM_sys_obelix.ksh

    r936 r938  
    738738  mkdir -p ${HOME}/MIRROR/${PATHlibIGCM} 
    739739 
    740   echo ${RSYNC} ${RSYNC_opt} ${libIGCM} ${HOME}/MIRROR/${PATHlibIGCM} > out_rsync 2>&1 
    741   ${RSYNC} ${RSYNC_opt} ${libIGCM} ${HOME}/MIRROR/${PATHlibIGCM} >> out_rsync 2>&1 
     740  echo ${RSYNC} ${RSYNC_opt} ${libIGCM} ${HOME}/MIRROR/${PATHlibIGCM} > /tmp/out_command.$$ 2>&1 
     741  ${RSYNC} ${RSYNC_opt} ${libIGCM} ${HOME}/MIRROR/${PATHlibIGCM} >> /tmp/out_command.$$ 2>&1 
    742742  status=$? 
    743743 
    744744  if [ ${status} -gt 0 ] ; then 
    745745    echo "IGCM_sys_Mirror_libIGCM Warning : no libIGCM on frontend." 
    746     cat out_rsync 
     746    cat /tmp/out_command.$$ 
    747747  fi 
    748748  IGCM_debug_PopStack "IGCM_sys_Mirror_libIGCM" 
     
    762762  typeset status 
    763763 
    764   echo cp $@ > out_rsync 2>&1 
    765   \cp $@ >> out_rsync 2>&1 
     764  echo cp $@ > /tmp/out_command.$$ 2>&1 
     765  \cp $@ >> /tmp/out_command.$$ 2>&1 
    766766  status=$? 
    767767 
    768768  if [ ${status} -gt 0 ] ; then 
    769769    echo "IGCM_sys_Cp : error code ${status}" 
    770     cat out_rsync 
     770    cat /tmp/out_command.$$ 
    771771    IGCM_debug_Exit "IGCM_sys_Cp" 
    772772  else 
    773     \rm out_rsync 
     773    \rm /tmp/out_command.$$ 
    774774  fi 
    775775  IGCM_debug_PopStack "IGCM_sys_Cp" 
     
    789789  typeset status 
    790790 
    791   echo rm $@ > out_rsync 2>&1 
    792   \rm $@ >> out_rsync 2>&1 
     791  echo rm $@ > /tmp/out_command.$$ 2>&1 
     792  \rm $@ >> /tmp/out_command.$$ 2>&1 
    793793  status=$? 
    794794 
    795795  if [ ${status} -gt 0 ] ; then 
    796796    echo "IGCM_sys_Rm : error code ${status}" 
    797     cat out_rsync 
     797    cat /tmp/out_command.$$ 
    798798    IGCM_debug_Exit "IGCM_sys_Rm" 
    799799  else 
    800     \rm out_rsync 
     800    \rm /tmp/out_command.$$ 
    801801  fi 
    802802  IGCM_debug_PopStack "IGCM_sys_Rm" 
     
    817817  typeset status 
    818818 
    819   echo rm $@ > out_rsync 2>&1 
    820   \rm $@ >> out_rsync 2>&1 
     819  echo rm $@ > /tmp/out_command.$$ 2>&1 
     820  \rm $@ >> /tmp/out_command.$$ 2>&1 
    821821  status=$? 
    822822 
    823823  if [ ${status} -gt 0 ] ; then 
    824824    echo "IGCM_sys_RmRunDir : rm error code is ${status}." 
    825     cat out_rsync 
     825    cat /tmp/out_command.$$ 
    826826    IGCM_debug_Exit "IGCM_sys_RmRunDir" 
    827827  else 
    828     \rm out_rsync 
     828    \rm /tmp/out_command.$$ 
    829829  fi 
    830830  IGCM_debug_PopStack "IGCM_sys_RmRunDir" 
     
    846846    typeset status 
    847847 
    848     echo mv $@ > out_rsync 2>&1 
    849     \mv $@ >> out_rsync 2>&1 
     848    echo mv $@ > /tmp/out_command.$$ 2>&1 
     849    \mv $@ >> /tmp/out_command.$$ 2>&1 
    850850    status=$? 
    851851 
    852852    if [ ${status} -gt 0 ] ; then 
    853853      echo "IGCM_sys_Mv : error code ${status}" 
    854       cat out_rsync 
     854      cat /tmp/out_command.$$ 
    855855      IGCM_debug_Exit "IGCM_sys_Mv" 
    856856    else 
    857       \rm out_rsync 
     857      \rm /tmp/out_command.$$ 
    858858    fi 
    859859  fi 
     
    884884    # 
    885885    #USUAL WAY 
    886     \cp -r $1 $2 > out_rsync 2>&1 
     886    \cp -r $1 $2 > /tmp/out_command.$$ 2>&1 
    887887    status=$? 
    888888 
    889889    if [ ${status} -gt 0 ] ; then 
    890890      IGCM_debug_Print 2 "IGCM_sys_Put_Dir : cp failed error code ${status}" 
    891       cat out_rsync 
     891      cat /tmp/out_command.$$ 
    892892      IGCM_debug_Exit "IGCM_sys_Put_Dir" 
    893893    else 
    894       \rm out_rsync 
     894      \rm /tmp/out_command.$$ 
    895895    fi 
    896896  fi 
     
    918918 
    919919    #USUAL WAY 
    920     \cp -ur $1 $2 > out_rsync 2>&1 
     920    \cp -ur $1 $2 > /tmp/out_command.$$ 2>&1 
    921921    status=$? 
    922922 
    923923    if [ ${status} -gt 0 ] ; then 
    924924      IGCM_debug_Print 2 "IGCM_sys_Get_Dir : cp failed error code ${status}" 
    925       cat out_rsync 
     925      cat /tmp/out_command.$$ 
    926926      IGCM_debug_Exit "IGCM_sys_Get_Dir" 
    927927    else 
    928       \rm out_rsync 
     928      \rm /tmp/out_command.$$ 
    929929    fi 
    930930  fi 
     
    957957    i=0 
    958958    while [ $i -lt $NB_ESSAI ] ; do 
    959       \cp -urL $1 $2 > out_rsync 2>&1 
     959      \cp -urL $1 $2 > /tmp/out_command.$$ 2>&1 
    960960      status=$? 
    961961      if [ ${status} -gt 0 ]; then 
     
    971971    if [ ${status} -gt 0 ] ; then 
    972972      echo "IGCM_sys_Get_Master : error." 
    973       cat out_rsync 
     973      cat /tmp/out_command.$$ 
    974974      IGCM_debug_Exit "IGCM_sys_Get_Master" 
    975975    else 
    976       \rm out_rsync 
     976      \rm /tmp/out_command.$$ 
    977977    fi 
    978978  fi 
     
    10131013    # 
    10141014    #USUAL WAY 
    1015     \cp $1 $2 > out_rsync 2>&1 
     1015    \cp $1 $2 > /tmp/out_command.$$ 2>&1 
    10161016    status=$? 
    10171017 
    10181018#       #RSYNC WITH NETWORK SSH CALL 
    1019 #       echo ${RSYNC} ${RSYNC_opt} -e ssh ${RUN_DIR}/$1 ${STOREHOST}:${2} > out_rsync 2>&1 
    1020 #       ${RSYNC} ${RSYNC_opt} -e ssh ${RUN_DIR}/$1 ${STOREHOST}:${2} >> out_rsync 2>&1 
     1019#       echo ${RSYNC} ${RSYNC_opt} -e ssh ${RUN_DIR}/$1 ${STOREHOST}:${2} > /tmp/out_command.$$ 2>&1 
     1020#       ${RSYNC} ${RSYNC_opt} -e ssh ${RUN_DIR}/$1 ${STOREHOST}:${2} >> /tmp/out_command.$$ 2>&1 
    10211021 
    10221022#       #RSYNC WITH NFS USE 
    1023 #       echo ${RSYNC} ${RSYNC_opt} ${RUN_DIR}/$1 ${2} > out_rsync 2>&1 
    1024 #       ${RSYNC} ${RSYNC_opt} ${RUN_DIR}/$1 ${2} >> out_rsync 2>&1 
     1023#       echo ${RSYNC} ${RSYNC_opt} ${RUN_DIR}/$1 ${2} > /tmp/out_command.$$ 2>&1 
     1024#       ${RSYNC} ${RSYNC_opt} ${RUN_DIR}/$1 ${2} >> /tmp/out_command.$$ 2>&1 
    10251025 
    10261026#       status=$? 
    10271027#       IGCM_sys_Rsync_out $status 
    10281028 
    1029 #       ${libIGCM}/libIGCM_sys/IGCM_analyse_rsync_out.awk out_rsync 
     1029#       ${libIGCM}/libIGCM_sys/IGCM_analyse_rsync_out.awk /tmp/out_command.$$ 
    10301030#       (( status=status+$? )) 
    10311031 
    10321032    if [ ${status} -gt 0 ] ; then 
    10331033      echo "IGCM_sys_Put_Rest : cp failed error code ${status}" 
    1034       cat out_rsync 
     1034      cat /tmp/out_command.$$ 
    10351035      IGCM_debug_Exit "IGCM_sys_Put_Rest" 
    10361036    else 
    1037       \rm out_rsync 
     1037      \rm /tmp/out_command.$$ 
    10381038    fi 
    10391039  fi 
     
    10661066    # 
    10671067    # USUAL WAY 
    1068     \cp $1 $2 > out_rsync 2>&1 
     1068    \cp $1 $2 > /tmp/out_command.$$ 2>&1 
    10691069    status=$? 
    10701070 
     
    10731073      [ -f ${2} ] && ls -l ${2} 
    10741074      [ -f ${2}/${1} ] && ls -l ${2}/${1} 
    1075       cat out_rsync 
     1075      cat /tmp/out_command.$$ 
    10761076      IGCM_debug_Exit "IGCM_sys_PutBuffer_Rest" 
    10771077    else 
    1078       \rm out_rsync 
     1078      \rm /tmp/out_command.$$ 
    10791079    fi 
    10801080  fi 
     
    11221122    # 
    11231123 
    1124     echo ${RSYNC} ${RSYNC_opt} $1 $2 > out_rsync 2>&1 
    1125     ${RSYNC} ${RSYNC_opt} $1 $2 >> out_rsync 2>&1 
     1124    echo ${RSYNC} ${RSYNC_opt} $1 $2 > /tmp/out_command.$$ 2>&1 
     1125    ${RSYNC} ${RSYNC_opt} $1 $2 >> /tmp/out_command.$$ 2>&1 
    11261126    status=$? 
    11271127    IGCM_sys_Rsync_out $status 
    11281128 
    1129     ${libIGCM}/libIGCM_sys/IGCM_analyse_rsync_out.awk out_rsync 
     1129    ${libIGCM}/libIGCM_sys/IGCM_analyse_rsync_out.awk /tmp/out_command.$$ 
    11301130    (( status=status+$? )) 
    11311131 
    11321132    if [ ${status} -gt 0 ] ; then 
    11331133      IGCM_debug_Print 2 "IGCM_sys_Put_Out : rsync failed error code ${status}" 
    1134       cat out_rsync 
     1134      cat /tmp/out_command.$$ 
    11351135      IGCM_debug_Exit "IGCM_sys_Put_Out" 
    11361136    else 
    1137       \rm out_rsync 
     1137      \rm /tmp/out_command.$$ 
    11381138    fi 
    11391139  fi 
     
    11931193      while [ $i -lt $NB_ESSAI ] ; do 
    11941194        # USUAL WAY 
    1195         \cp $1 $2 > out_rsync 2>&1 
     1195        \cp $1 $2 > /tmp/out_command.$$ 2>&1 
    11961196        status=$? 
    11971197        if [ ${status} -gt 0 ]; then 
     
    12121212      [ -f ${2} ] && ls -l ${2} 
    12131213      [ -f ${2}/${1} ] && ls -l ${2}/${1} 
    1214       cat out_rsync 
     1214      cat /tmp/out_command.$$ 
    12151215      IGCM_debug_Exit "IGCM_sys_PutBuffer_Out" 
    12161216    else 
     
    12231223      fi 
    12241224 
    1225       \rm out_rsync 
     1225      \rm /tmp/out_command.$$ 
    12261226    fi 
    12271227  fi 
     
    12611261 
    12621262    #USUAL WAY 
    1263     \cp ${dm_liste[*]} ${DEST} > out_rsync 2>&1 
     1263    \cp ${dm_liste[*]} ${DEST} > /tmp/out_command.$$ 2>&1 
    12641264    status=$? 
    12651265 
    12661266    if [ ${status} -gt 0 ] ; then 
    12671267      IGCM_debug_Print 2 "IGCM_sys_Get : cp failed error code ${status}" 
    1268       cat out_rsync 
     1268      cat /tmp/out_command.$$ 
    12691269      IGCM_debug_Exit "IGCM_sys_Get" 
    12701270    else 
    1271       \rm out_rsync 
     1271      \rm /tmp/out_command.$$ 
    12721272    fi 
    12731273  fi 
     
    13091309        i=0 
    13101310        while [ $i -lt $NB_ESSAI ] ; do 
    1311           \cp ${target} ${DEST}/${local_file} >> out_rsync 2>&1 
     1311          \cp ${target} ${DEST}/${local_file} >> /tmp/out_command.$$ 2>&1 
    13121312          status=$? 
    13131313          if [ ${status} -gt 0 ]; then 
     
    13221322        if [ ${status} -gt 0 ] ; then 
    13231323          echo "IGCM_sys_Get : error" 
    1324           cat out_rsync 
    1325           \rm out_rsync 
     1324          cat /tmp/out_command.$$ 
     1325          \rm /tmp/out_command.$$ 
    13261326          IGCM_debug_Exit "IGCM_sys_GetBuffer" 
    13271327        else 
    1328           \rm out_rsync 
     1328          \rm /tmp/out_command.$$ 
    13291329        fi 
    13301330      done 
     
    13321332      i=0 
    13331333      while [ $i -lt $NB_ESSAI ] ; do 
    1334         \cp ${buf_liste} ${DEST} >> out_rsync 2>&1 
     1334        \cp ${buf_liste} ${DEST} >> /tmp/out_command.$$ 2>&1 
    13351335        status=$? 
    13361336        if [ ${status} -gt 0 ]; then 
     
    13451345      if [ ${status} -gt 0 ] ; then 
    13461346        echo "IGCM_sys_Get : error" 
    1347         cat out_rsync 
    1348         \rm out_rsync 
     1347        cat /tmp/out_command.$$ 
     1348        \rm /tmp/out_command.$$ 
    13491349        IGCM_debug_Exit "IGCM_sys_GetBuffer" 
    13501350      else 
    1351         \rm out_rsync 
     1351        \rm /tmp/out_command.$$ 
    13521352      fi 
    13531353    fi 
     
    14501450  i=0 
    14511451  while [ $i -lt $NB_ESSAI ] ; do 
    1452     /home/users/igcmg/rebuild/bin/rebuild -f -o $@ > out_rsync 2>&1 
     1452    /home/users/igcmg/rebuild/bin/rebuild -f -o $@ > /tmp/out_command.$$ 2>&1 
    14531453    status=$? 
    14541454    if [ ${status} -gt 0 ] ; then 
    14551455      IGCM_debug_Print 2 "IGCM_sys_rebuild : error code ${status}" 
    1456       cat out_rsync 
    1457       \rm out_rsync 
     1456      cat /tmp/out_command.$$ 
     1457      \rm /tmp/out_command.$$ 
    14581458      IGCM_debug_Print 2 "IGCM_sys_rebuild : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    14591459      firstArg=${1} 
     
    14611461      sleep $DELAI 
    14621462    else 
    1463       \rm out_rsync 
     1463      \rm /tmp/out_command.$$ 
    14641464      break 
    14651465    fi 
     
    19691969  i=0 
    19701970  while [ $i -lt $NB_ESSAI ] ; do 
    1971     ncap2 "$@" > out_rsync 2>&1 
     1971    ncap2 "$@" > /tmp/out_command.$$ 2>&1 
    19721972    status=$? 
    19731973    if [ ${status} -gt 0 ] ; then 
    19741974      IGCM_debug_Print 2 "IGCM_sys_ncap2 : error code ${status}" 
    1975       cat out_rsync 
    1976       \rm out_rsync 
     1975      cat /tmp/out_command.$$ 
     1976      \rm /tmp/out_command.$$ 
    19771977      IGCM_debug_Print 2 "IGCM_sys_ncap2 : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    19781978      sleep $DELAI 
    19791979    else 
    1980       \rm out_rsync 
     1980      \rm /tmp/out_command.$$ 
    19811981      break 
    19821982    fi 
     
    20112011  i=0 
    20122012  while [ $i -lt $NB_ESSAI ] ; do 
    2013     ncatted "$@" > out_rsync 2>&1 
     2013    ncatted "$@" > /tmp/out_command.$$ 2>&1 
    20142014    status=$? 
    20152015    if [ ${status} -gt 0 ] ; then 
    20162016      IGCM_debug_Print 2 "IGCM_sys_ncatted : error code ${status}" 
    2017       cat out_rsync 
    2018       \rm out_rsync 
     2017      cat /tmp/out_command.$$ 
     2018      \rm /tmp/out_command.$$ 
    20192019      IGCM_debug_Print 2 "IGCM_sys_ncatted : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    20202020      sleep $DELAI 
    20212021    else 
    2022       \rm out_rsync 
     2022      \rm /tmp/out_command.$$ 
    20232023      break 
    20242024    fi 
     
    20532053  i=0 
    20542054  while [ $i -lt $NB_ESSAI ] ; do 
    2055     ncbo $@ > out_rsync 2>&1 
     2055    ncbo $@ > /tmp/out_command.$$ 2>&1 
    20562056    status=$? 
    20572057    if [ ${status} -gt 0 ] ; then 
    20582058      IGCM_debug_Print 2 "IGCM_sys_ncbo : error code ${status}" 
    2059       cat out_rsync 
    2060       \rm out_rsync 
     2059      cat /tmp/out_command.$$ 
     2060      \rm /tmp/out_command.$$ 
    20612061      IGCM_debug_Print 2 "IGCM_sys_ncbo : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    20622062      sleep $DELAI 
    20632063    else 
    2064       \rm out_rsync 
     2064      \rm /tmp/out_command.$$ 
    20652065      break 
    20662066    fi 
     
    20952095  i=0 
    20962096  while [ $i -lt $NB_ESSAI ] ; do 
    2097     ncdiff $@ > out_rsync 2>&1 
     2097    ncdiff $@ > /tmp/out_command.$$ 2>&1 
    20982098    status=$? 
    20992099    if [ ${status} -gt 0 ] ; then 
    21002100      IGCM_debug_Print 2 "IGCM_sys_ncdiff : error code ${status}" 
    2101       cat out_rsync 
    2102       \rm out_rsync 
     2101      cat /tmp/out_command.$$ 
     2102      \rm /tmp/out_command.$$ 
    21032103      IGCM_debug_Print 2 "IGCM_sys_ncdiff : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    21042104      sleep $DELAI 
    21052105    else 
    2106       \rm out_rsync 
     2106      \rm /tmp/out_command.$$ 
    21072107      break 
    21082108    fi 
     
    21372137  i=0 
    21382138  while [ $i -lt $NB_ESSAI ] ; do 
    2139     ncea $@ > out_rsync 2>&1 
     2139    ncea $@ > /tmp/out_command.$$ 2>&1 
    21402140    status=$? 
    21412141    if [ ${status} -gt 0 ] ; then 
    21422142      IGCM_debug_Print 2 "IGCM_sys_ncea : error code ${status}" 
    2143       cat out_rsync 
    2144       \rm out_rsync 
     2143      cat /tmp/out_command.$$ 
     2144      \rm /tmp/out_command.$$ 
    21452145      IGCM_debug_Print 2 "IGCM_sys_ncea : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    21462146      sleep $DELAI 
    21472147    else 
    2148       \rm out_rsync 
     2148      \rm /tmp/out_command.$$ 
    21492149      break 
    21502150    fi 
     
    21792179  i=0 
    21802180  while [ $i -lt $NB_ESSAI ] ; do 
    2181     ncecat $@ > out_rsync 2>&1 
     2181    ncecat $@ > /tmp/out_command.$$ 2>&1 
    21822182    status=$? 
    21832183    if [ ${status} -gt 0 ] ; then 
    21842184      IGCM_debug_Print 2 "IGCM_sys_ncecat : error code ${status}" 
    2185       cat out_rsync 
    2186       \rm out_rsync 
     2185      cat /tmp/out_command.$$ 
     2186      \rm /tmp/out_command.$$ 
    21872187      IGCM_debug_Print 2 "IGCM_sys_ncecat : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    21882188      sleep $DELAI 
    21892189    else 
    2190       \rm out_rsync 
     2190      \rm /tmp/out_command.$$ 
    21912191      break 
    21922192    fi 
     
    22212221  i=0 
    22222222  while [ $i -lt $NB_ESSAI ] ; do 
    2223     ncflint $@ > out_rsync 2>&1 
     2223    ncflint $@ > /tmp/out_command.$$ 2>&1 
    22242224    status=$? 
    22252225    if [ ${status} -gt 0 ] ; then 
    22262226      IGCM_debug_Print 2 "IGCM_sys_ncflint : error code ${status}" 
    2227       cat out_rsync 
    2228       \rm out_rsync 
     2227      cat /tmp/out_command.$$ 
     2228      \rm /tmp/out_command.$$ 
    22292229      IGCM_debug_Print 2 "IGCM_sys_ncflint : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    22302230      sleep $DELAI 
    22312231    else 
    2232       \rm out_rsync 
     2232      \rm /tmp/out_command.$$ 
    22332233      break 
    22342234    fi 
     
    22632263  i=0 
    22642264  while [ $i -lt $NB_ESSAI ] ; do 
    2265     ncks $@ > out_rsync 2>&1 
     2265    ncks $@ > /tmp/out_command.$$ 2>&1 
    22662266    status=$? 
    22672267    if [ ${status} -gt 0 ] ; then 
    22682268      IGCM_debug_Print 2 "IGCM_sys_ncks : error code ${status}" 
    2269       cat out_rsync 
    2270       \rm out_rsync 
     2269      cat /tmp/out_command.$$ 
     2270      \rm /tmp/out_command.$$ 
    22712271      IGCM_debug_Print 2 "IGCM_sys_ncks : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    22722272      sleep $DELAI 
    22732273    else 
    2274       \rm out_rsync 
     2274      \rm /tmp/out_command.$$ 
    22752275      break 
    22762276    fi 
     
    23052305  i=0 
    23062306  while [ $i -lt $NB_ESSAI ] ; do 
    2307     ncpdq $@ > out_rsync 2>&1 
     2307    ncpdq $@ > /tmp/out_command.$$ 2>&1 
    23082308    status=$? 
    23092309    if [ ${status} -gt 0 ] ; then 
    23102310      IGCM_debug_Print 2 "IGCM_sys_ncpdq : error code ${status}" 
    2311       cat out_rsync 
    2312       \rm out_rsync 
     2311      cat /tmp/out_command.$$ 
     2312      \rm /tmp/out_command.$$ 
    23132313      IGCM_debug_Print 2 "IGCM_sys_ncpdq : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    23142314      sleep $DELAI 
    23152315    else 
    2316       \rm out_rsync 
     2316      \rm /tmp/out_command.$$ 
    23172317      break 
    23182318    fi 
     
    23472347  i=0 
    23482348  while [ $i -lt $NB_ESSAI ] ; do 
    2349     ncra $@ > out_rsync 2>&1 
     2349    ncra $@ > /tmp/out_command.$$ 2>&1 
    23502350    status=$? 
    23512351    if [ ${status} -gt 0 ] ; then 
    23522352      IGCM_debug_Print 2 "IGCM_sys_ncra : error code ${status}" 
    2353       cat out_rsync 
    2354       \rm out_rsync 
     2353      cat /tmp/out_command.$$ 
     2354      \rm /tmp/out_command.$$ 
    23552355      IGCM_debug_Print 2 "IGCM_sys_ncra : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    23562356      sleep $DELAI 
    23572357    else 
    2358       \rm out_rsync 
     2358      \rm /tmp/out_command.$$ 
    23592359      break 
    23602360    fi 
     
    23892389  i=0 
    23902390  while [ $i -lt $NB_ESSAI ] ; do 
    2391     ncrcat $@ > out_rsync 2>&1 
     2391    ncrcat $@ > /tmp/out_command.$$ 2>&1 
    23922392    status=$? 
    23932393    if [ ${status} -gt 0 ] ; then 
    23942394      IGCM_debug_Print 2 "IGCM_sys_ncrcat : error code ${status}" 
    2395       cat out_rsync 
    2396       \rm out_rsync 
     2395      cat /tmp/out_command.$$ 
     2396      \rm /tmp/out_command.$$ 
    23972397      IGCM_debug_Print 2 "IGCM_sys_ncrcat : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    23982398      sleep $DELAI 
    2399     elif [ ! "X$( grep "WARNING Intra-file non-monotonicity" out_rsync )" = "X" ] ; then 
     2399    elif [ ! "X$( grep "WARNING Intra-file non-monotonicity" /tmp/out_command.$$ )" = "X" ] ; then 
    24002400      IGCM_debug_Print 2 "IGCM_sys_ncrcat : WARNING Intra-file non-monotonicity" 
    2401       cat out_rsync 
     2401      cat /tmp/out_command.$$ 
    24022402      # remove files having corrupted time axis 
    24032403      eval lastArg=\${$#} 
    24042404      IGCM_debug_Print 2 "IGCM_sys_ncrcat : Delete ${lastArg}" 
    24052405      \rm ${lastArg} 
    2406       \rm out_rsync 
     2406      \rm /tmp/out_command.$$ 
    24072407      IGCM_debug_Print 2 "IGCM_sys_ncrcat : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    24082408      sleep $DELAI 
    24092409    else 
    2410       \rm out_rsync 
     2410      \rm /tmp/out_command.$$ 
    24112411      break 
    24122412    fi 
     
    24412441  i=0 
    24422442  while [ $i -lt $NB_ESSAI ] ; do 
    2443     ncrename $@ > out_rsync 2>&1 
     2443    ncrename $@ > /tmp/out_command.$$ 2>&1 
    24442444    status=$? 
    24452445    if [ ${status} -gt 0 ] ; then 
    24462446      IGCM_debug_Print 2 "IGCM_sys_ncrename : error code ${status}" 
    2447       cat out_rsync 
    2448       \rm out_rsync 
     2447      cat /tmp/out_command.$$ 
     2448      \rm /tmp/out_command.$$ 
    24492449      IGCM_debug_Print 2 "IGCM_sys_ncrename : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    24502450      sleep $DELAI 
    24512451    else 
    2452       \rm out_rsync 
     2452      \rm /tmp/out_command.$$ 
    24532453      break 
    24542454    fi 
     
    24832483  i=0 
    24842484  while [ $i -lt $NB_ESSAI ] ; do 
    2485     ncwa $@ > out_rsync 2>&1 
     2485    ncwa $@ > /tmp/out_command.$$ 2>&1 
    24862486    status=$? 
    24872487    if [ ${status} -gt 0 ] ; then 
    24882488      IGCM_debug_Print 2 "IGCM_sys_ncwa : error code ${status}" 
    2489       cat out_rsync 
    2490       \rm out_rsync 
     2489      cat /tmp/out_command.$$ 
     2490      \rm /tmp/out_command.$$ 
    24912491      IGCM_debug_Print 2 "IGCM_sys_ncwa : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    24922492      sleep $DELAI 
    24932493    else 
    2494       \rm out_rsync 
     2494      \rm /tmp/out_command.$$ 
    24952495      break 
    24962496    fi 
     
    25222522  typeset status 
    25232523 
    2524   \cdo $@ > out_rsync 2>&1 
     2524  \cdo $@ > /tmp/out_command.$$ 2>&1 
    25252525  status=$? 
    25262526  if [ ${status} -gt 0 ] ; then 
    25272527    echo "IGCM_sys_cdo : error code ${status}" 
    2528     cat out_rsync 
    2529     \rm out_rsync 
     2528    cat /tmp/out_command.$$ 
     2529    \rm /tmp/out_command.$$ 
    25302530    IGCM_debug_PopStack "IGCM_sys_cdo" 
    25312531    return 1 
Note: See TracChangeset for help on using the changeset viewer.