Changeset 187


Ignore:
Timestamp:
10/19/09 17:42:30 (15 years ago)
Author:
aclsce
Message:

Use of TMPDIR_IGCM as TMPDIR.
Remove RUN_DIR at the end on RUN mode.
Removed Master variable declared as read-only variable.
Removed echo in count_archive function.
Coherence in filename used by mail function.

Location:
trunk/libIGCM
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/libIGCM_config/libIGCM_config.ksh

    r183 r187  
    707707    # Clean ${RUN_DIR}=${RUN_DIR_PATH}/${config_UserChoices_TagName}/${config_UserChoices_JobName} 
    708708    # Only for production run (No clean up in DEV or DEB mode) 
    709     [ X${JobType} = X${RUN} ] && IGCM_sys_Rm -rf ${RUN_DIR} 
     709    [ X${JobType} = XRUN ] && IGCM_sys_Rm -rf ${RUN_DIR} 
    710710 
    711711    IGCM_debug_PopStack "IGCM_config_Finalize" 
  • trunk/libIGCM/libIGCM_sys/libIGCM_sys_platine.ksh

    r173 r187  
    7070typeset -r LOGIN=$( whoami ) 
    7171# $hostname of the MASTER job 
    72 typeset -r MASTER=platine 
     72typeset MASTER=platine 
    7373 
    7474#D- 
     
    136136typeset RUN_DIR_PATH=${RUN_DIR_PATH:=${SCRATCHDIR}} 
    137137if [ $LSB_QUEUE == post ] ; then 
    138     typeset -r RUN_DIR_PATH=${SCRATCHDIR}/tmp$$ 
     138    typeset -r RUN_DIR_PATH=${SCRATCHDIR}/TMPDIR_IGCM/tmp$$ 
    139139    if [ ! -d ${RUN_DIR_PATH} ]; then  
    140140        \mkdir -p ${RUN_DIR_PATH} 
     
    226226    IGCM_debug_PushStack "IGCM_sys_SendMailPost" $@ 
    227227    if ( $DEBUG_sys ) ; then 
    228         echo "IGCM_sys_SendMail :" $@ 
    229     fi 
    230  
    231     cat  << END_MAIL > job_atlas.mail 
     228       echo "IGCM_sys_SendMail :" $@ 
     229    fi 
     230    cat  << END_MAIL > job_end.mail 
    232231Dear ${LOGIN}, 
    233232 
     
    239238 
    240239    if [ ! -z ${config_UserChoices_MailName} ] ; then 
    241         mailx -s "${config_UserChoices_JobName} completed" ${config_UserChoices_MailName} <  job_end.mail 
     240        mailx -s "${config_UserChoices_JobName} completed" ${config_UserChoices_MailName} < job_end.mail 
    242241    elif [ -f ~/.forward ] ; then 
    243242        mailx -s "${config_UserChoices_JobName} completed" $( cat ~/.forward ) < job_end.mail 
     
    443442function IGCM_sys_CountFileArchive { 
    444443    IGCM_debug_PushStack "IGCM_sys_CountFileArchive" $@ 
    445     if ( $DEBUG_sys ) ; then 
    446         echo "IGCM_sys_CountFileArchive :" $@ 
    447     fi 
    448444    ls ${@} 2>/dev/null | wc -l 
    449445    if [ $? -gt 0 ] ; then 
Note: See TracChangeset for help on using the changeset viewer.