Changeset 567


Ignore:
Timestamp:
03/05/12 18:37:41 (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
  • trunk/libIGCM/libIGCM_sys/libIGCM_sys_vargas.ksh

    r537 r567  
    206206 
    207207    # keep standard input to keep it for postpone if ulam don't answer 
    208     cat >/tmp/tmp_IGCM_sys_RshPost_$$ 
     208    cat >/tmp/tmp_IGCM_sys_RshPost_$$_${LOGIN} 
    209209 
    210210    ## Add submission for old postponed files only if command is a Qsub 
    211211    ## 
    212212    ISITQSUB=0 
    213     grep Qsub /tmp/tmp_IGCM_sys_RshPost_$$ >/dev/null 2>&1 && ISITQSUB=1 
     213    grep Qsub /tmp/tmp_IGCM_sys_RshPost_$$_${LOGIN} >/dev/null 2>&1 && ISITQSUB=1 
    214214    if  ( [ ${ISITQSUB} -gt 0 ] ) ; then  
    215215      if [ -d ${SUBMIT_DIR}/POSTPONE ] ; then 
     
    230230    RETURN=0 
    231231    # rsh ulam command 
    232     rsh ulam exec /bin/ksh </tmp/tmp_IGCM_sys_RshPost_$$ 
     232    rsh ulam exec /bin/ksh </tmp/tmp_IGCM_sys_RshPost_$$_${LOGIN} 
    233233    RETURN=$? 
    234234 
    235235    # keep standard input for postpone if ulam don't answer 
    236236    if ( [ ${RETURN} -gt 0 ] ) ; then 
    237         IGCM_debug_Print 2 "Postpone tmp_IGCM_sys_RshPost_$$" 
     237        IGCM_debug_Print 2 "Postpone tmp_IGCM_sys_RshPost_$$_${LOGIN}" 
    238238        [ -d ${SUBMIT_DIR}/POSTPONE ] || mkdir ${SUBMIT_DIR}/POSTPONE 
    239         mv /tmp/tmp_IGCM_sys_RshPost_$$ ${SUBMIT_DIR}/POSTPONE 
     239        mv /tmp/tmp_IGCM_sys_RshPost_$$_${LOGIN} ${SUBMIT_DIR}/POSTPONE 
     240    else 
     241        \rm /tmp/tmp_IGCM_sys_RshPost_$$_${LOGIN} 
    240242    fi 
    241243    IGCM_debug_PopStack "IGCM_sys_RshPost" 
Note: See TracChangeset for help on using the changeset viewer.