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_brodie.ksh

    r438 r452  
    184184 
    185185    if ( ${ExitFlag} ) ; then 
    186         status=FAILED 
    187         cat  << END_MAIL > job_end.mail 
     186        status=failed 
     187    else 
     188        status=completed 
     189    fi 
     190 
     191    cat  << END_MAIL > job_end.mail 
    188192Dear ${LOGIN}, 
    189193 
    190   Simulation ${config_UserChoices_JobName} failed on supercomputer `hostname`. 
    191   Job started : ${PeriodDateBegin} 
    192   Job ended   : ${PeriodDateEnd} 
    193   Output files are available in ${R_SAVE} 
    194   Script files, Script Outputs and Debug files are available in ${SUBMIT_DIR} 
    195 END_MAIL 
    196     else 
    197         status=COMPLETED 
    198         cat  << END_MAIL > job_end.mail 
    199 Dear ${LOGIN}, 
    200  
    201   Simulation ${config_UserChoices_JobName} is finished on supercomputer `hostname`. 
     194  Simulation ${config_UserChoices_JobName} is ${status} on supercomputer `hostname`. 
    202195  Job started : ${DateBegin} 
    203196  Job ended   : ${DateEnd} 
    204197  Output files are available in ${R_SAVE} 
    205   Script files and Script Outputs are available in ${SUBMIT_DIR} 
     198  Script files, Script Outputs and Debug files (if necessary) are available in ${SUBMIT_DIR} 
    206199END_MAIL 
    207  
    208     fi 
    209200 
    210201    if [ X${config_UserChoices_MailName} != X ] ; then 
Note: See TracChangeset for help on using the changeset viewer.