Changeset 978


Ignore:
Timestamp:
02/04/14 15:44:40 (10 years ago)
Author:
jgipsl
Message:
  • Added login in suffix for /tmp/out_command file to make the file unique. All users write in the same /tmp and cleaning is not done systematically, see ticket #174 .
  • Changed R_IN directory to /home/orchideeshare/igcmg/IGCM
File:
1 edited

Legend:

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

    r968 r978  
    120120#==================================================== 
    121121#- IN 
    122 typeset -r R_IN=${R_IN:=/home/orchidee01/mmancip/IGCM} 
     122typeset -r R_IN=${R_IN:=/home/orchideeshare/igcmg/IGCM} 
    123123 
    124124#==================================================== 
     
    578578  typeset options status 
    579579  options="-o ${SUBMIT_DIR}/${Script_Output}" 
    580   /usr/local/bin/qsub ${options} $1 > /tmp/out_command.$$ 2>&1 
     580  /usr/local/bin/qsub ${options} $1 > /tmp/out_command_${LOGIN}.$$ 2>&1 
    581581  status=$? 
    582582 
    583   cat /tmp/out_command.$$ 
     583  cat /tmp/out_command_${LOGIN}.$$ 
    584584  if [ ${status} -gt 0 ] ; then 
    585585    IGCM_debug_Print 2 "IGCM_sys_Qsub $1 : error code ${status}" 
    586586    IGCM_debug_Exit "IGCM_sys_Qsub" 
    587587  else 
    588     JobID=$( gawk {'print $1'} /tmp/out_command.$$ ) 
     588    JobID=$( gawk {'print $1'} /tmp/out_command_${LOGIN}.$$ ) 
    589589  fi 
    590590  IGCM_debug_PopStack "IGCM_sys_Qsub" 
     
    603603  typeset options status 
    604604  options="-o ${POST_DIR}/${Script_Post_Output}.out -v ${listVarEnv}" 
    605   /usr/local/bin/qsub ${options} ${libIGCM_POST}/$1.job > /tmp/out_command.$$ 2>&1 
     605  /usr/local/bin/qsub ${options} ${libIGCM_POST}/$1.job > /tmp/out_command_${LOGIN}.$$ 2>&1 
    606606  status=$? 
    607607 
    608   cat /tmp/out_command.$$ 
     608  cat /tmp/out_command_${LOGIN}.$$ 
    609609  if [ ${status} -gt 0 ] ; then 
    610610    IGCM_debug_Print 2 "IGCM_sys_QsubPost ${options} ${libIGCM_POST}/$1.job : error code ${status}" 
    611611    IGCM_debug_Exit "IGCM_sys_QsubPost" 
    612612  else 
    613     JobID=$( gawk {'print $1'} /tmp/out_command.$$ ) 
     613    JobID=$( gawk {'print $1'} /tmp/out_command_${LOGIN}.$$ ) 
    614614  fi 
    615615  IGCM_debug_PopStack "IGCM_sys_QsubPost" 
     
    746746  mkdir -p ${HOME}/MIRROR/${PATHlibIGCM} 
    747747 
    748   echo ${RSYNC} ${RSYNC_opt} ${libIGCM} ${HOME}/MIRROR/${PATHlibIGCM} > /tmp/out_command.$$ 2>&1 
    749   ${RSYNC} ${RSYNC_opt} ${libIGCM} ${HOME}/MIRROR/${PATHlibIGCM} >> /tmp/out_command.$$ 2>&1 
     748  echo ${RSYNC} ${RSYNC_opt} ${libIGCM} ${HOME}/MIRROR/${PATHlibIGCM} > /tmp/out_command_${LOGIN}.$$ 2>&1 
     749  ${RSYNC} ${RSYNC_opt} ${libIGCM} ${HOME}/MIRROR/${PATHlibIGCM} >> /tmp/out_command_${LOGIN}.$$ 2>&1 
    750750  status=$? 
    751751 
    752752  if [ ${status} -gt 0 ] ; then 
    753753    echo "IGCM_sys_Mirror_libIGCM Warning : no libIGCM on frontend." 
    754     cat /tmp/out_command.$$ 
     754    cat /tmp/out_command_${LOGIN}.$$ 
    755755  fi 
    756756  IGCM_debug_PopStack "IGCM_sys_Mirror_libIGCM" 
     
    770770  typeset status 
    771771 
    772   echo cp $@ > /tmp/out_command.$$ 2>&1 
    773   \cp $@ >> /tmp/out_command.$$ 2>&1 
     772  echo cp $@ > /tmp/out_command_${LOGIN}.$$ 2>&1 
     773  \cp $@ >> /tmp/out_command_${LOGIN}.$$ 2>&1 
    774774  status=$? 
    775775 
    776776  if [ ${status} -gt 0 ] ; then 
    777777    echo "IGCM_sys_Cp : error code ${status}" 
    778     cat /tmp/out_command.$$ 
     778    cat /tmp/out_command_${LOGIN}.$$ 
    779779    IGCM_debug_Exit "IGCM_sys_Cp" 
    780780  else 
    781     \rm /tmp/out_command.$$ 
     781    \rm /tmp/out_command_${LOGIN}.$$ 
    782782  fi 
    783783  IGCM_debug_PopStack "IGCM_sys_Cp" 
     
    797797  typeset status 
    798798 
    799   echo rm $@ > /tmp/out_command.$$ 2>&1 
    800   \rm $@ >> /tmp/out_command.$$ 2>&1 
     799  echo rm $@ > /tmp/out_command_${LOGIN}.$$ 2>&1 
     800  \rm $@ >> /tmp/out_command_${LOGIN}.$$ 2>&1 
    801801  status=$? 
    802802 
    803803  if [ ${status} -gt 0 ] ; then 
    804804    echo "IGCM_sys_Rm : error code ${status}" 
    805     cat /tmp/out_command.$$ 
     805    cat /tmp/out_command_${LOGIN}.$$ 
    806806    IGCM_debug_Exit "IGCM_sys_Rm" 
    807807  else 
    808     \rm /tmp/out_command.$$ 
     808    \rm /tmp/out_command_${LOGIN}.$$ 
    809809  fi 
    810810  IGCM_debug_PopStack "IGCM_sys_Rm" 
     
    841841    typeset status 
    842842 
    843     echo mv $@ > /tmp/out_command.$$ 2>&1 
    844     \mv $@ >> /tmp/out_command.$$ 2>&1 
     843    echo mv $@ > /tmp/out_command_${LOGIN}.$$ 2>&1 
     844    \mv $@ >> /tmp/out_command_${LOGIN}.$$ 2>&1 
    845845    status=$? 
    846846 
    847847    if [ ${status} -gt 0 ] ; then 
    848848      echo "IGCM_sys_Mv : error code ${status}" 
    849       cat /tmp/out_command.$$ 
     849      cat /tmp/out_command_${LOGIN}.$$ 
    850850      IGCM_debug_Exit "IGCM_sys_Mv" 
    851851    else 
    852       \rm /tmp/out_command.$$ 
     852      \rm /tmp/out_command_${LOGIN}.$$ 
    853853    fi 
    854854  fi 
     
    879879    # 
    880880    #USUAL WAY 
    881     \cp -r $1 $2 > /tmp/out_command.$$ 2>&1 
     881    \cp -r $1 $2 > /tmp/out_command_${LOGIN}.$$ 2>&1 
    882882    status=$? 
    883883 
    884884    if [ ${status} -gt 0 ] ; then 
    885885      IGCM_debug_Print 2 "IGCM_sys_Put_Dir : cp failed error code ${status}" 
    886       cat /tmp/out_command.$$ 
     886      cat /tmp/out_command_${LOGIN}.$$ 
    887887      IGCM_debug_Exit "IGCM_sys_Put_Dir" 
    888888    else 
    889       \rm /tmp/out_command.$$ 
     889      \rm /tmp/out_command_${LOGIN}.$$ 
    890890    fi 
    891891  fi 
     
    913913 
    914914    #USUAL WAY 
    915     \cp -ur $1 $2 > /tmp/out_command.$$ 2>&1 
     915    \cp -ur $1 $2 > /tmp/out_command_${LOGIN}.$$ 2>&1 
    916916    status=$? 
    917917 
    918918    if [ ${status} -gt 0 ] ; then 
    919919      IGCM_debug_Print 2 "IGCM_sys_Get_Dir : cp failed error code ${status}" 
    920       cat /tmp/out_command.$$ 
     920      cat /tmp/out_command_${LOGIN}.$$ 
    921921      IGCM_debug_Exit "IGCM_sys_Get_Dir" 
    922922    else 
    923       \rm /tmp/out_command.$$ 
     923      \rm /tmp/out_command_${LOGIN}.$$ 
    924924    fi 
    925925  fi 
     
    952952    i=0 
    953953    while [ $i -lt $NB_ESSAI ] ; do 
    954       \cp -urL $1 $2 > /tmp/out_command.$$ 2>&1 
     954      \cp -urL $1 $2 > /tmp/out_command_${LOGIN}.$$ 2>&1 
    955955      status=$? 
    956956      if [ ${status} -gt 0 ]; then 
     
    966966    if [ ${status} -gt 0 ] ; then 
    967967      echo "IGCM_sys_Get_Master : error." 
    968       cat /tmp/out_command.$$ 
     968      cat /tmp/out_command_${LOGIN}.$$ 
    969969      IGCM_debug_Exit "IGCM_sys_Get_Master" 
    970970    else 
    971       \rm /tmp/out_command.$$ 
     971      \rm /tmp/out_command_${LOGIN}.$$ 
    972972    fi 
    973973  fi 
     
    10081008    # 
    10091009    #USUAL WAY 
    1010     \cp $1 $2 > /tmp/out_command.$$ 2>&1 
     1010    \cp $1 $2 > /tmp/out_command_${LOGIN}.$$ 2>&1 
    10111011    status=$? 
    10121012 
    10131013#       #RSYNC WITH NETWORK SSH CALL 
    1014 #       echo ${RSYNC} ${RSYNC_opt} -e ssh ${RUN_DIR}/$1 ${STOREHOST}:${2} > /tmp/out_command.$$ 2>&1 
    1015 #       ${RSYNC} ${RSYNC_opt} -e ssh ${RUN_DIR}/$1 ${STOREHOST}:${2} >> /tmp/out_command.$$ 2>&1 
     1014#       echo ${RSYNC} ${RSYNC_opt} -e ssh ${RUN_DIR}/$1 ${STOREHOST}:${2} > /tmp/out_command_${LOGIN}.$$ 2>&1 
     1015#       ${RSYNC} ${RSYNC_opt} -e ssh ${RUN_DIR}/$1 ${STOREHOST}:${2} >> /tmp/out_command_${LOGIN}.$$ 2>&1 
    10161016 
    10171017#       #RSYNC WITH NFS USE 
    1018 #       echo ${RSYNC} ${RSYNC_opt} ${RUN_DIR}/$1 ${2} > /tmp/out_command.$$ 2>&1 
    1019 #       ${RSYNC} ${RSYNC_opt} ${RUN_DIR}/$1 ${2} >> /tmp/out_command.$$ 2>&1 
     1018#       echo ${RSYNC} ${RSYNC_opt} ${RUN_DIR}/$1 ${2} > /tmp/out_command_${LOGIN}.$$ 2>&1 
     1019#       ${RSYNC} ${RSYNC_opt} ${RUN_DIR}/$1 ${2} >> /tmp/out_command_${LOGIN}.$$ 2>&1 
    10201020 
    10211021#       status=$? 
    10221022#       IGCM_sys_Rsync_out $status 
    10231023 
    1024 #       ${libIGCM}/libIGCM_sys/IGCM_analyse_rsync_out.awk /tmp/out_command.$$ 
     1024#       ${libIGCM}/libIGCM_sys/IGCM_analyse_rsync_out.awk /tmp/out_command_${LOGIN}.$$ 
    10251025#       (( status=status+$? )) 
    10261026 
    10271027    if [ ${status} -gt 0 ] ; then 
    10281028      echo "IGCM_sys_Put_Rest : cp failed error code ${status}" 
    1029       cat /tmp/out_command.$$ 
     1029      cat /tmp/out_command_${LOGIN}.$$ 
    10301030      IGCM_debug_Exit "IGCM_sys_Put_Rest" 
    10311031    else 
    1032       \rm /tmp/out_command.$$ 
     1032      \rm /tmp/out_command_${LOGIN}.$$ 
    10331033    fi 
    10341034  fi 
     
    10611061    # 
    10621062    # USUAL WAY 
    1063     \cp $1 $2 > /tmp/out_command.$$ 2>&1 
     1063    \cp $1 $2 > /tmp/out_command_${LOGIN}.$$ 2>&1 
    10641064    status=$? 
    10651065 
     
    10681068      [ -f ${2} ] && ls -l ${2} 
    10691069      [ -f ${2}/${1} ] && ls -l ${2}/${1} 
    1070       cat /tmp/out_command.$$ 
     1070      cat /tmp/out_command_${LOGIN}.$$ 
    10711071      IGCM_debug_Exit "IGCM_sys_PutBuffer_Rest" 
    10721072    else 
    1073       \rm /tmp/out_command.$$ 
     1073      \rm /tmp/out_command_${LOGIN}.$$ 
    10741074    fi 
    10751075  fi 
     
    11171117    # 
    11181118 
    1119     echo ${RSYNC} ${RSYNC_opt} $1 $2 > /tmp/out_command.$$ 2>&1 
    1120     ${RSYNC} ${RSYNC_opt} $1 $2 >> /tmp/out_command.$$ 2>&1 
     1119    echo ${RSYNC} ${RSYNC_opt} $1 $2 > /tmp/out_command_${LOGIN}.$$ 2>&1 
     1120    ${RSYNC} ${RSYNC_opt} $1 $2 >> /tmp/out_command_${LOGIN}.$$ 2>&1 
    11211121    status=$? 
    11221122    IGCM_sys_Rsync_out $status 
    11231123 
    1124     ${libIGCM}/libIGCM_sys/IGCM_analyse_rsync_out.awk /tmp/out_command.$$ 
     1124    ${libIGCM}/libIGCM_sys/IGCM_analyse_rsync_out.awk /tmp/out_command_${LOGIN}.$$ 
    11251125    (( status=status+$? )) 
    11261126 
    11271127    if [ ${status} -gt 0 ] ; then 
    11281128      IGCM_debug_Print 2 "IGCM_sys_Put_Out : rsync failed error code ${status}" 
    1129       cat /tmp/out_command.$$ 
     1129      cat /tmp/out_command_${LOGIN}.$$ 
    11301130      IGCM_debug_Exit "IGCM_sys_Put_Out" 
    11311131    else 
    1132       \rm /tmp/out_command.$$ 
     1132      \rm /tmp/out_command_${LOGIN}.$$ 
    11331133    fi 
    11341134  fi 
     
    11881188      while [ $i -lt $NB_ESSAI ] ; do 
    11891189        # USUAL WAY 
    1190         \cp $1 $2 > /tmp/out_command.$$ 2>&1 
     1190        \cp $1 $2 > /tmp/out_command_${LOGIN}.$$ 2>&1 
    11911191        status=$? 
    11921192        if [ ${status} -gt 0 ]; then 
     
    12071207      [ -f ${2} ] && ls -l ${2} 
    12081208      [ -f ${2}/${1} ] && ls -l ${2}/${1} 
    1209       cat /tmp/out_command.$$ 
     1209      cat /tmp/out_command_${LOGIN}.$$ 
    12101210      IGCM_debug_Exit "IGCM_sys_PutBuffer_Out" 
    12111211    else 
     
    12181218      fi 
    12191219 
    1220       \rm /tmp/out_command.$$ 
     1220      \rm /tmp/out_command_${LOGIN}.$$ 
    12211221    fi 
    12221222  fi 
     
    12561256 
    12571257    #USUAL WAY 
    1258     \cp ${dm_liste[*]} ${DEST} > /tmp/out_command.$$ 2>&1 
     1258    \cp ${dm_liste[*]} ${DEST} > /tmp/out_command_${LOGIN}.$$ 2>&1 
    12591259    status=$? 
    12601260 
    12611261    if [ ${status} -gt 0 ] ; then 
    12621262      IGCM_debug_Print 2 "IGCM_sys_Get : cp failed error code ${status}" 
    1263       cat /tmp/out_command.$$ 
     1263      cat /tmp/out_command_${LOGIN}.$$ 
    12641264      IGCM_debug_Exit "IGCM_sys_Get" 
    12651265    else 
    1266       \rm /tmp/out_command.$$ 
     1266      \rm /tmp/out_command_${LOGIN}.$$ 
    12671267    fi 
    12681268  fi 
     
    13041304        i=0 
    13051305        while [ $i -lt $NB_ESSAI ] ; do 
    1306           \cp ${target} ${DEST}/${local_file} >> /tmp/out_command.$$ 2>&1 
     1306          \cp ${target} ${DEST}/${local_file} >> /tmp/out_command_${LOGIN}.$$ 2>&1 
    13071307          status=$? 
    13081308          if [ ${status} -gt 0 ]; then 
     
    13171317        if [ ${status} -gt 0 ] ; then 
    13181318          echo "IGCM_sys_Get : error" 
    1319           cat /tmp/out_command.$$ 
    1320           \rm /tmp/out_command.$$ 
     1319          cat /tmp/out_command_${LOGIN}.$$ 
     1320          \rm /tmp/out_command_${LOGIN}.$$ 
    13211321          IGCM_debug_Exit "IGCM_sys_GetBuffer" 
    13221322        else 
    1323           \rm /tmp/out_command.$$ 
     1323          \rm /tmp/out_command_${LOGIN}.$$ 
    13241324        fi 
    13251325      done 
     
    13271327      i=0 
    13281328      while [ $i -lt $NB_ESSAI ] ; do 
    1329         \cp ${buf_liste} ${DEST} >> /tmp/out_command.$$ 2>&1 
     1329        \cp ${buf_liste} ${DEST} >> /tmp/out_command_${LOGIN}.$$ 2>&1 
    13301330        status=$? 
    13311331        if [ ${status} -gt 0 ]; then 
     
    13401340      if [ ${status} -gt 0 ] ; then 
    13411341        echo "IGCM_sys_Get : error" 
    1342         cat /tmp/out_command.$$ 
    1343         \rm /tmp/out_command.$$ 
     1342        cat /tmp/out_command_${LOGIN}.$$ 
     1343        \rm /tmp/out_command_${LOGIN}.$$ 
    13441344        IGCM_debug_Exit "IGCM_sys_GetBuffer" 
    13451345      else 
    1346         \rm /tmp/out_command.$$ 
     1346        \rm /tmp/out_command_${LOGIN}.$$ 
    13471347      fi 
    13481348    fi 
     
    14451445  i=0 
    14461446  while [ $i -lt $NB_ESSAI ] ; do 
    1447     /home/users/igcmg/rebuild/bin/rebuild -f -o $@ > /tmp/out_command.$$ 2>&1 
     1447    /home/users/igcmg/rebuild/bin/rebuild -f -o $@ > /tmp/out_command_${LOGIN}.$$ 2>&1 
    14481448    status=$? 
    14491449    if [ ${status} -gt 0 ] ; then 
    14501450      IGCM_debug_Print 2 "IGCM_sys_rebuild : error code ${status}" 
    1451       cat /tmp/out_command.$$ 
    1452       \rm /tmp/out_command.$$ 
     1451      cat /tmp/out_command_${LOGIN}.$$ 
     1452      \rm /tmp/out_command_${LOGIN}.$$ 
    14531453      IGCM_debug_Print 2 "IGCM_sys_rebuild : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    14541454      firstArg=${1} 
     
    14561456      sleep $DELAI 
    14571457    else 
    1458       \rm /tmp/out_command.$$ 
     1458      \rm /tmp/out_command_${LOGIN}.$$ 
    14591459      break 
    14601460    fi 
     
    19641964  i=0 
    19651965  while [ $i -lt $NB_ESSAI ] ; do 
    1966     ncap2 "$@" > /tmp/out_command.$$ 2>&1 
     1966    ncap2 "$@" > /tmp/out_command_${LOGIN}.$$ 2>&1 
    19671967    status=$? 
    19681968    if [ ${status} -gt 0 ] ; then 
    19691969      IGCM_debug_Print 2 "IGCM_sys_ncap2 : error code ${status}" 
    1970       cat /tmp/out_command.$$ 
    1971       \rm /tmp/out_command.$$ 
     1970      cat /tmp/out_command_${LOGIN}.$$ 
     1971      \rm /tmp/out_command_${LOGIN}.$$ 
    19721972      IGCM_debug_Print 2 "IGCM_sys_ncap2 : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    19731973      sleep $DELAI 
    19741974    else 
    1975       \rm /tmp/out_command.$$ 
     1975      \rm /tmp/out_command_${LOGIN}.$$ 
    19761976      break 
    19771977    fi 
     
    20062006  i=0 
    20072007  while [ $i -lt $NB_ESSAI ] ; do 
    2008     ncatted "$@" > /tmp/out_command.$$ 2>&1 
     2008    ncatted "$@" > /tmp/out_command_${LOGIN}.$$ 2>&1 
    20092009    status=$? 
    20102010    if [ ${status} -gt 0 ] ; then 
    20112011      IGCM_debug_Print 2 "IGCM_sys_ncatted : error code ${status}" 
    2012       cat /tmp/out_command.$$ 
    2013       \rm /tmp/out_command.$$ 
     2012      cat /tmp/out_command_${LOGIN}.$$ 
     2013      \rm /tmp/out_command_${LOGIN}.$$ 
    20142014      IGCM_debug_Print 2 "IGCM_sys_ncatted : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    20152015      sleep $DELAI 
    20162016    else 
    2017       \rm /tmp/out_command.$$ 
     2017      \rm /tmp/out_command_${LOGIN}.$$ 
    20182018      break 
    20192019    fi 
     
    20482048  i=0 
    20492049  while [ $i -lt $NB_ESSAI ] ; do 
    2050     ncbo $@ > /tmp/out_command.$$ 2>&1 
     2050    ncbo $@ > /tmp/out_command_${LOGIN}.$$ 2>&1 
    20512051    status=$? 
    20522052    if [ ${status} -gt 0 ] ; then 
    20532053      IGCM_debug_Print 2 "IGCM_sys_ncbo : error code ${status}" 
    2054       cat /tmp/out_command.$$ 
    2055       \rm /tmp/out_command.$$ 
     2054      cat /tmp/out_command_${LOGIN}.$$ 
     2055      \rm /tmp/out_command_${LOGIN}.$$ 
    20562056      IGCM_debug_Print 2 "IGCM_sys_ncbo : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    20572057      sleep $DELAI 
    20582058    else 
    2059       \rm /tmp/out_command.$$ 
     2059      \rm /tmp/out_command_${LOGIN}.$$ 
    20602060      break 
    20612061    fi 
     
    20902090  i=0 
    20912091  while [ $i -lt $NB_ESSAI ] ; do 
    2092     ncdiff $@ > /tmp/out_command.$$ 2>&1 
     2092    ncdiff $@ > /tmp/out_command_${LOGIN}.$$ 2>&1 
    20932093    status=$? 
    20942094    if [ ${status} -gt 0 ] ; then 
    20952095      IGCM_debug_Print 2 "IGCM_sys_ncdiff : error code ${status}" 
    2096       cat /tmp/out_command.$$ 
    2097       \rm /tmp/out_command.$$ 
     2096      cat /tmp/out_command_${LOGIN}.$$ 
     2097      \rm /tmp/out_command_${LOGIN}.$$ 
    20982098      IGCM_debug_Print 2 "IGCM_sys_ncdiff : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    20992099      sleep $DELAI 
    21002100    else 
    2101       \rm /tmp/out_command.$$ 
     2101      \rm /tmp/out_command_${LOGIN}.$$ 
    21022102      break 
    21032103    fi 
     
    21322132  i=0 
    21332133  while [ $i -lt $NB_ESSAI ] ; do 
    2134     ncea $@ > /tmp/out_command.$$ 2>&1 
     2134    ncea $@ > /tmp/out_command_${LOGIN}.$$ 2>&1 
    21352135    status=$? 
    21362136    if [ ${status} -gt 0 ] ; then 
    21372137      IGCM_debug_Print 2 "IGCM_sys_ncea : error code ${status}" 
    2138       cat /tmp/out_command.$$ 
    2139       \rm /tmp/out_command.$$ 
     2138      cat /tmp/out_command_${LOGIN}.$$ 
     2139      \rm /tmp/out_command_${LOGIN}.$$ 
    21402140      IGCM_debug_Print 2 "IGCM_sys_ncea : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    21412141      sleep $DELAI 
    21422142    else 
    2143       \rm /tmp/out_command.$$ 
     2143      \rm /tmp/out_command_${LOGIN}.$$ 
    21442144      break 
    21452145    fi 
     
    21742174  i=0 
    21752175  while [ $i -lt $NB_ESSAI ] ; do 
    2176     ncecat $@ > /tmp/out_command.$$ 2>&1 
     2176    ncecat $@ > /tmp/out_command_${LOGIN}.$$ 2>&1 
    21772177    status=$? 
    21782178    if [ ${status} -gt 0 ] ; then 
    21792179      IGCM_debug_Print 2 "IGCM_sys_ncecat : error code ${status}" 
    2180       cat /tmp/out_command.$$ 
    2181       \rm /tmp/out_command.$$ 
     2180      cat /tmp/out_command_${LOGIN}.$$ 
     2181      \rm /tmp/out_command_${LOGIN}.$$ 
    21822182      IGCM_debug_Print 2 "IGCM_sys_ncecat : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    21832183      sleep $DELAI 
    21842184    else 
    2185       \rm /tmp/out_command.$$ 
     2185      \rm /tmp/out_command_${LOGIN}.$$ 
    21862186      break 
    21872187    fi 
     
    22162216  i=0 
    22172217  while [ $i -lt $NB_ESSAI ] ; do 
    2218     ncflint $@ > /tmp/out_command.$$ 2>&1 
     2218    ncflint $@ > /tmp/out_command_${LOGIN}.$$ 2>&1 
    22192219    status=$? 
    22202220    if [ ${status} -gt 0 ] ; then 
    22212221      IGCM_debug_Print 2 "IGCM_sys_ncflint : error code ${status}" 
    2222       cat /tmp/out_command.$$ 
    2223       \rm /tmp/out_command.$$ 
     2222      cat /tmp/out_command_${LOGIN}.$$ 
     2223      \rm /tmp/out_command_${LOGIN}.$$ 
    22242224      IGCM_debug_Print 2 "IGCM_sys_ncflint : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    22252225      sleep $DELAI 
    22262226    else 
    2227       \rm /tmp/out_command.$$ 
     2227      \rm /tmp/out_command_${LOGIN}.$$ 
    22282228      break 
    22292229    fi 
     
    22582258  i=0 
    22592259  while [ $i -lt $NB_ESSAI ] ; do 
    2260     ncks $@ > /tmp/out_command.$$ 2>&1 
     2260    ncks $@ > /tmp/out_command_${LOGIN}.$$ 2>&1 
    22612261    status=$? 
    22622262    if [ ${status} -gt 0 ] ; then 
    22632263      IGCM_debug_Print 2 "IGCM_sys_ncks : error code ${status}" 
    2264       cat /tmp/out_command.$$ 
    2265       \rm /tmp/out_command.$$ 
     2264      cat /tmp/out_command_${LOGIN}.$$ 
     2265      \rm /tmp/out_command_${LOGIN}.$$ 
    22662266      IGCM_debug_Print 2 "IGCM_sys_ncks : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    22672267      sleep $DELAI 
    22682268    else 
    2269       \rm /tmp/out_command.$$ 
     2269      \rm /tmp/out_command_${LOGIN}.$$ 
    22702270      break 
    22712271    fi 
     
    23002300  i=0 
    23012301  while [ $i -lt $NB_ESSAI ] ; do 
    2302     ncpdq $@ > /tmp/out_command.$$ 2>&1 
     2302    ncpdq $@ > /tmp/out_command_${LOGIN}.$$ 2>&1 
    23032303    status=$? 
    23042304    if [ ${status} -gt 0 ] ; then 
    23052305      IGCM_debug_Print 2 "IGCM_sys_ncpdq : error code ${status}" 
    2306       cat /tmp/out_command.$$ 
    2307       \rm /tmp/out_command.$$ 
     2306      cat /tmp/out_command_${LOGIN}.$$ 
     2307      \rm /tmp/out_command_${LOGIN}.$$ 
    23082308      IGCM_debug_Print 2 "IGCM_sys_ncpdq : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    23092309      sleep $DELAI 
    23102310    else 
    2311       \rm /tmp/out_command.$$ 
     2311      \rm /tmp/out_command_${LOGIN}.$$ 
    23122312      break 
    23132313    fi 
     
    23422342  i=0 
    23432343  while [ $i -lt $NB_ESSAI ] ; do 
    2344     ncra $@ > /tmp/out_command.$$ 2>&1 
     2344    ncra $@ > /tmp/out_command_${LOGIN}.$$ 2>&1 
    23452345    status=$? 
    23462346    if [ ${status} -gt 0 ] ; then 
    23472347      IGCM_debug_Print 2 "IGCM_sys_ncra : error code ${status}" 
    2348       cat /tmp/out_command.$$ 
    2349       \rm /tmp/out_command.$$ 
     2348      cat /tmp/out_command_${LOGIN}.$$ 
     2349      \rm /tmp/out_command_${LOGIN}.$$ 
    23502350      IGCM_debug_Print 2 "IGCM_sys_ncra : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    23512351      sleep $DELAI 
    23522352    else 
    2353       \rm /tmp/out_command.$$ 
     2353      \rm /tmp/out_command_${LOGIN}.$$ 
    23542354      break 
    23552355    fi 
     
    23842384  i=0 
    23852385  while [ $i -lt $NB_ESSAI ] ; do 
    2386     ncrcat $@ > /tmp/out_command.$$ 2>&1 
     2386    ncrcat $@ > /tmp/out_command_${LOGIN}.$$ 2>&1 
    23872387    status=$? 
    23882388    if [ ${status} -gt 0 ] ; then 
    23892389      IGCM_debug_Print 2 "IGCM_sys_ncrcat : error code ${status}" 
    2390       cat /tmp/out_command.$$ 
    2391       \rm /tmp/out_command.$$ 
     2390      cat /tmp/out_command_${LOGIN}.$$ 
     2391      \rm /tmp/out_command_${LOGIN}.$$ 
    23922392      IGCM_debug_Print 2 "IGCM_sys_ncrcat : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    23932393      sleep $DELAI 
    2394     elif [ ! "X$( grep "WARNING Intra-file non-monotonicity" /tmp/out_command.$$ )" = "X" ] ; then 
     2394    elif [ ! "X$( grep "WARNING Intra-file non-monotonicity" /tmp/out_command_${LOGIN}.$$ )" = "X" ] ; then 
    23952395      IGCM_debug_Print 2 "IGCM_sys_ncrcat : WARNING Intra-file non-monotonicity" 
    2396       cat /tmp/out_command.$$ 
     2396      cat /tmp/out_command_${LOGIN}.$$ 
    23972397      # remove files having corrupted time axis 
    23982398      eval lastArg=\${$#} 
    23992399      IGCM_debug_Print 2 "IGCM_sys_ncrcat : Delete ${lastArg}" 
    24002400      \rm ${lastArg} 
    2401       \rm /tmp/out_command.$$ 
     2401      \rm /tmp/out_command_${LOGIN}.$$ 
    24022402      IGCM_debug_Print 2 "IGCM_sys_ncrcat : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    24032403      sleep $DELAI 
    24042404    else 
    2405       \rm /tmp/out_command.$$ 
     2405      \rm /tmp/out_command_${LOGIN}.$$ 
    24062406      break 
    24072407    fi 
     
    24362436  i=0 
    24372437  while [ $i -lt $NB_ESSAI ] ; do 
    2438     ncrename $@ > /tmp/out_command.$$ 2>&1 
     2438    ncrename $@ > /tmp/out_command_${LOGIN}.$$ 2>&1 
    24392439    status=$? 
    24402440    if [ ${status} -gt 0 ] ; then 
    24412441      IGCM_debug_Print 2 "IGCM_sys_ncrename : error code ${status}" 
    2442       cat /tmp/out_command.$$ 
    2443       \rm /tmp/out_command.$$ 
     2442      cat /tmp/out_command_${LOGIN}.$$ 
     2443      \rm /tmp/out_command_${LOGIN}.$$ 
    24442444      IGCM_debug_Print 2 "IGCM_sys_ncrename : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    24452445      sleep $DELAI 
    24462446    else 
    2447       \rm /tmp/out_command.$$ 
     2447      \rm /tmp/out_command_${LOGIN}.$$ 
    24482448      break 
    24492449    fi 
     
    24782478  i=0 
    24792479  while [ $i -lt $NB_ESSAI ] ; do 
    2480     ncwa $@ > /tmp/out_command.$$ 2>&1 
     2480    ncwa $@ > /tmp/out_command_${LOGIN}.$$ 2>&1 
    24812481    status=$? 
    24822482    if [ ${status} -gt 0 ] ; then 
    24832483      IGCM_debug_Print 2 "IGCM_sys_ncwa : error code ${status}" 
    2484       cat /tmp/out_command.$$ 
    2485       \rm /tmp/out_command.$$ 
     2484      cat /tmp/out_command_${LOGIN}.$$ 
     2485      \rm /tmp/out_command_${LOGIN}.$$ 
    24862486      IGCM_debug_Print 2 "IGCM_sys_ncwa : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    24872487      sleep $DELAI 
    24882488    else 
    2489       \rm /tmp/out_command.$$ 
     2489      \rm /tmp/out_command_${LOGIN}.$$ 
    24902490      break 
    24912491    fi 
     
    25172517  typeset status 
    25182518 
    2519   \cdo $@ > /tmp/out_command.$$ 2>&1 
     2519  \cdo $@ > /tmp/out_command_${LOGIN}.$$ 2>&1 
    25202520  status=$? 
    25212521  if [ ${status} -gt 0 ] ; then 
    25222522    echo "IGCM_sys_cdo : error code ${status}" 
    2523     cat /tmp/out_command.$$ 
    2524     \rm /tmp/out_command.$$ 
     2523    cat /tmp/out_command_${LOGIN}.$$ 
     2524    \rm /tmp/out_command_${LOGIN}.$$ 
    25252525    IGCM_debug_PopStack "IGCM_sys_cdo" 
    25262526    return 1 
Note: See TracChangeset for help on using the changeset viewer.