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

    r438 r452  
    203203 
    204204    if ( ${ExitFlag} ) ; then 
    205         status=FAILED 
    206         cat  << END_MAIL > job_end.mail 
     205        status=failed 
     206    else 
     207        status=completed 
     208    fi 
     209    cat  << END_MAIL > job_end.mail 
    207210Dear ${LOGIN}, 
    208211 
    209   Simulation ${config_UserChoices_JobName} failed on supercomputer `hostname`. 
    210   Job started : ${PeriodDateBegin} 
    211   Job ended   : ${PeriodDateEnd} 
    212   Output files are available in ${R_SAVE} 
    213   Script files, Script Outputs and Debug files are available in ${SUBMIT_DIR} 
    214 END_MAIL 
    215     else 
    216         status=COMPLETED 
    217         cat  << END_MAIL > job_end.mail 
    218 Dear ${LOGIN}, 
    219  
    220   Simulation ${config_UserChoices_JobName} is finished on supercomputer `hostname`. 
     212  Simulation ${config_UserChoices_JobName} is ${status} on supercomputer `hostname`. 
    221213  Job started : ${DateBegin} 
    222214  Job ended   : ${DateEnd} 
    223215  Ouput files are available in ${R_SAVE} 
    224   Script files and Script Outputs are available in ${SUBMIT_DIR} 
     216  Script files, Script Outputs and Debug files (if necessary) are available in ${SUBMIT_DIR} 
    225217END_MAIL 
    226     fi 
    227218 
    228219    if [ ! -z ${config_UserChoices_MailName} ] ; then 
Note: See TracChangeset for help on using the changeset viewer.