Ignore:
Timestamp:
04/11/11 16:38:31 (13 years ago)
Author:
sdipsl
Message:
  • Homogenize IGCM_sys_SendMail across libIGCM_sys
  • Titane can not send mail, cesium can not send mail so they use resp. platine and mercure.
  • Related to ticket #53
  • For now send mail only if the computing job fail or complete
  • Not fully tested. Working version.
File:
1 edited

Legend:

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

    r450 r452  
    228228    fi 
    229229 
    230     IGCM_sys_RshPost <<-EOF 
     230    if ( ${ExitFlag} ) ; then 
     231        status=failed 
     232    else 
     233        status=completed 
     234    fi 
     235 
     236    ssh mercure <<-EOF 
    231237    export LOGIN=${LOGIN} 
    232238    export config_UserChoices_JobName=${config_UserChoices_JobName} 
     
    236242    export R_SAVE=${R_SAVE} 
    237243    export SUBMIT_DIR=${SUBMIT_DIR} 
    238     export ExitFlag=${ExitFlag} 
    239  
    240     if ( ${ExitFlag} ) ; then 
    241         status=FAILED 
     244    export status=${status} 
    242245 
    243246    cat  << END_MAIL > job_end.mail 
    244247Dear ${LOGIN}, 
    245248 
    246   Simulation ${config_UserChoices_JobName} is finished on supercomputer `hostname`. 
     249  Simulation ${config_UserChoices_JobName} is ${status} on supercomputer `hostname`. 
    247250  Job started : ${DateBegin} 
    248251  Job ended   : ${DateEnd} 
    249252  Output files are available in ${R_SAVE} 
    250   Script files and Script Outputs are available in ${SUBMIT_DIR} 
     253  Script files, Script Outputs  and Debug files (if necessary) are available in ${SUBMIT_DIR} 
    251254END_MAIL 
    252     else 
    253         status=COMPLETED 
    254         cat  << END_MAIL > job_end.mail 
    255 Dear ${LOGIN}, 
    256  
    257   Simulation ${config_UserChoices_JobName} is finished on supercomputer `hostname`. 
    258   Job started : ${DateBegin} 
    259   Job ended   : ${DateEnd} 
    260   Output files are available in ${R_SAVE} 
    261   Script files and Script Outputs are available in ${SUBMIT_DIR} 
    262 END_MAIL 
    263     fi 
    264255 
    265256    if [ ! -z ${config_UserChoices_MailName} ] ; then 
Note: See TracChangeset for help on using the changeset viewer.