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

    r438 r452  
    237237 
    238238    if ( ${ExitFlag} ) ; then 
    239         status=FAILED 
    240         cat  << END_MAIL > job_end.mail 
     239        status=failed 
     240    else 
     241        status=completed 
     242    fi 
     243    cat  << END_MAIL > job_end.mail 
    241244Dear ${LOGIN}, 
    242245 
    243   Simulation ${config_UserChoices_JobName} failed on supercomputer `hostname`. 
    244   Job started : ${PeriodDateBegin} 
    245   Job ended   : ${PeriodDateEnd} 
    246   Output files are available in ${R_SAVE} 
    247   Script files, Script Outputs and Debug files are available in ${SUBMIT_DIR} 
    248 END_MAIL 
    249     else 
    250         status=COMPLETED 
    251         cat  << END_MAIL > job_end.mail 
    252 Dear ${LOGIN}, 
    253  
    254   Simulation ${config_UserChoices_JobName} is finished on supercomputer `hostname`. 
     246  Simulation ${config_UserChoices_JobName} is ${status} on supercomputer `hostname`. 
    255247  Job started : ${DateBegin} 
    256248  Job ended   : ${DateEnd} 
    257249  Output files are available in ${R_SAVE} 
    258   Script files and Script Outputs are available in ${SUBMIT_DIR} 
     250  Script files, Script Outputs and Debug files (if necessary) are available in ${SUBMIT_DIR} 
    259251END_MAIL 
    260     fi 
    261252 
    262253    if  [ X"${config_UserChoices_MailName}" != X ] ; then 
Note: See TracChangeset for help on using the changeset viewer.