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

    r450 r452  
    228228 
    229229    if ( ${ExitFlag} ) ; then 
    230         status=FAILED 
     230        status=failed 
    231231        # Nothing fo now 
    232232    else 
    233         status=COMPLETED 
    234         ssh mercure /bin/ksh <<-EOF 
     233        status=completed 
     234    fi 
     235 
     236    ssh ${MASTER} /bin/ksh <<-EOF 
    235237    export LOGIN=${LOGIN} 
    236238    export config_UserChoices_JobName=${config_UserChoices_JobName} 
     
    240242    export R_SAVE=${R_SAVE} 
    241243    export SUBMIT_DIR=${SUBMIT_DIR} 
     244    export status=${status} 
    242245 
    243246    cat  << END_MAIL > job_end.mail 
    244247Dear ${LOGIN}, 
    245248 
    246   Simulation ${config_UserChoices_JobName} is finished on supercomputer `hostname`. 
     249  Simulation ${config_UserChoices_JobName} is ${status} on supercomputer `hostname`. 
    247250  Job started : ${DateBegin} 
    248251  Job ended   : ${DateEnd} 
    249252  Output files are available in ${R_SAVE} 
    250   Script files and Script Outputs are available in ${SUBMIT_DIR} 
     253  Script files, Script Outputs and Debug files (if necessary) are available in ${SUBMIT_DIR} 
    251254END_MAIL 
    252255 
     
    260263    rm -f job_end.mail 
    261264EOF 
    262     fi 
    263265 
    264266    if [ $? -gt 0 ] ; then 
Note: See TracChangeset for help on using the changeset viewer.