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

    r450 r452  
    226226 
    227227    if ( ${ExitFlag} ) ; then 
    228         status=FAILED 
     228        status=failed 
     229    else 
     230        status=completed 
     231    fi 
    229232        cat  << END_MAIL > job_end.mail 
    230233Dear ${LOGIN}, 
    231234 
    232   Simulation ${config_UserChoices_JobName} failed on supercomputer `hostname`. 
    233   Job started : ${PeriodDateBegin} 
    234   Job ended   : ${PeriodDateEnd} 
    235   Output files are available in ${R_SAVE} 
    236   Script files, Script Outputs and Debug files are available in ${SUBMIT_DIR} 
    237 END_MAIL 
    238     else 
    239         status=COMPLETED 
    240         cat  << END_MAIL > job_end.mail 
    241 Dear ${LOGIN}, 
    242  
    243   Simulation ${config_UserChoices_JobName} is finished on supercomputer `hostname`. 
     235  Simulation ${config_UserChoices_JobName} is ${status} on supercomputer `hostname`. 
    244236  Job started : ${DateBegin} 
    245237  Job ended   : ${DateEnd} 
    246238  Output files are available in ${R_SAVE} 
    247   Script files and Script Outputs are available in ${SUBMIT_DIR} 
     239  Script files, Script Outputs and Debug files (if necessary) are available in ${SUBMIT_DIR} 
    248240END_MAIL 
    249     fi 
    250241 
    251242    if [ ! -z ${config_UserChoices_MailName} ] ; then 
Note: See TracChangeset for help on using the changeset viewer.