Changeset 440 for trunk/libIGCM


Ignore:
Timestamp:
04/07/11 17:12:38 (13 years ago)
Author:
sdipsl
Message:

Slight modification only for testing purpose. See ticket #53

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/libIGCM_sys/libIGCM_sys_cesium.ksh

    r438 r440  
    236236    export R_SAVE=${R_SAVE} 
    237237    export SUBMIT_DIR=${SUBMIT_DIR} 
     238    export ExitFlag=${ExitFlag} 
     239 
     240    if ( ${ExitFlag} ) ; then 
     241        status=FAILED 
    238242 
    239243    cat  << END_MAIL > job_end.mail 
     
    246250  Script files and Script Outputs are available in ${SUBMIT_DIR} 
    247251END_MAIL 
     252    else 
     253        status=COMPLETED 
     254        cat  << END_MAIL > job_end.mail 
     255Dear ${LOGIN}, 
     256 
     257  Simulation ${config_UserChoices_JobName} is finished on supercomputer `hostname`. 
     258  Job started : ${DateBegin} 
     259  Job ended   : ${DateEnd} 
     260  Output files are available in ${R_SAVE} 
     261  Script files and Script Outputs are available in ${SUBMIT_DIR} 
     262END_MAIL 
     263    fi 
    248264 
    249265    if [ ! -z ${config_UserChoices_MailName} ] ; then 
    250        mailx -s "${config_UserChoices_JobName} completed" ${config_UserChoices_MailName} <  job_end.mail 
     266       mailx -s "${config_UserChoices_JobName} ${status}" ${config_UserChoices_MailName} <  job_end.mail 
    251267    elif [ -f ~/.forward ] ; then 
    252        mailx -s "${config_UserChoices_JobName} completed" $( cat ~/.forward ) < job_end.mail 
     268       mailx -s "${config_UserChoices_JobName} ${status}" $( cat ~/.forward ) < job_end.mail 
    253269    fi 
    254270    sleep 10 
Note: See TracChangeset for help on using the changeset viewer.