Changeset 566 for tags


Ignore:
Timestamp:
03/05/12 18:33:16 (12 years ago)
Author:
mafoipsl
Message:

On vargas : add temporary file suppression and add $LOGIN to have different names for different login. NB : No problem on other systems.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tags/libIGCM_v1_12/libIGCM_sys/libIGCM_sys_vargas.ksh

    r479 r566  
    167167 
    168168    # keep standard input to keep it for postpone if ulam don't answer 
    169     cat >/tmp/tmp_IGCM_sys_RshPost_$$ 
     169    cat >/tmp/tmp_IGCM_sys_RshPost_$$_${LOGIN} 
    170170 
    171171    ## Add submission for old postponed files only if command is a Qsub 
    172172    ## 
    173173    ISITQSUB=0 
    174     grep Qsub /tmp/tmp_IGCM_sys_RshPost_$$ >/dev/null 2>&1 && ISITQSUB=1 
     174    grep Qsub /tmp/tmp_IGCM_sys_RshPost_$$_${LOGIN} >/dev/null 2>&1 && ISITQSUB=1 
    175175    if  ( [ ${ISITQSUB} -gt 0 ] ) ; then  
    176176      if [ -d ${SUBMIT_DIR}/POSTPONE ] ; then 
     
    191191    RETURN=0 
    192192    # rsh ulam command 
    193     rsh ulam exec /bin/ksh </tmp/tmp_IGCM_sys_RshPost_$$ 
     193    rsh ulam exec /bin/ksh </tmp/tmp_IGCM_sys_RshPost_$$_${LOGIN} 
    194194    RETURN=$? 
    195195 
    196196    # keep standard input for postpone if ulam don't answer 
    197197    if ( [ ${RETURN} -gt 0 ] ) ; then 
    198         IGCM_debug_Print 2 "Postpone tmp_IGCM_sys_RshPost_$$" 
     198        IGCM_debug_Print 2 "Postpone tmp_IGCM_sys_RshPost_$$_${LOGIN}" 
    199199        [ -d ${SUBMIT_DIR}/POSTPONE ] || mkdir ${SUBMIT_DIR}/POSTPONE 
    200         mv /tmp/tmp_IGCM_sys_RshPost_$$ ${SUBMIT_DIR}/POSTPONE 
     200        mv /tmp/tmp_IGCM_sys_RshPost_$$_${LOGIN} ${SUBMIT_DIR}/POSTPONE 
     201    else 
     202        \rm /tmp/tmp_IGCM_sys_RshPost_$$_${LOGIN} 
    201203    fi 
    202204    IGCM_debug_PopStack "IGCM_sys_RshPost" 
Note: See TracChangeset for help on using the changeset viewer.