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

    r450 r452  
    206206 
    207207    if ( ${ExitFlag} ) ; then 
    208         status=FAILED 
    209         cat  << END_MAIL > job_end.mail 
     208        status=failed 
     209    else 
     210        status=completed 
     211    fi 
     212 
     213    cat  << END_MAIL > job_end.mail 
    210214Dear ${LOGIN}, 
    211215 
    212   Simulation ${config_UserChoices_JobName} failed on supercomputer `hostname`. 
    213   Job started : ${PeriodDateBegin} 
    214   Job ended   : ${PeriodDateEnd} 
    215   Output files are available in ${R_SAVE} 
    216   Script files, Script Outputs and Debug files are available in ${SUBMIT_DIR} 
    217 END_MAIL 
    218     else 
    219         status=COMPLETED 
    220         cat  << END_MAIL > job_end.mail 
    221 Dear ${LOGIN}, 
    222  
    223   Simulation ${config_UserChoices_JobName} is finished on supercomputer `hostname`. 
     216  Simulation ${config_UserChoices_JobName} is ${status} on supercomputer `hostname`. 
    224217  Job started : ${DateBegin} 
    225218  Job ended   : ${DateEnd} 
    226219  Output files are available in ${R_SAVE} 
    227   Script files and Script Outputs are available in ${SUBMIT_DIR} 
     220  Script files, Script Outputs and Debug files (if necessary) are available in ${SUBMIT_DIR} 
    228221END_MAIL 
    229     fi 
    230222 
    231223    if  [ X"${config_UserChoices_MailName}" != X ] ; then 
Note: See TracChangeset for help on using the changeset viewer.