Ignore:
Timestamp:
07/06/10 15:26:45 (14 years ago)
Author:
mafoipsl
Message:

Add mail when job aborts in mercure front-end header. Correct SendMail? function on mercurex9.

File:
1 edited

Legend:

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

    r288 r315  
    229229    fi 
    230230 
    231     ssh mercure /bin/ksh <<-EOF 
    232     export LOGIN=${LOGIN} 
    233     export config_UserChoices_JobName=${config_UserChoices_JobName} 
    234     export config_UserChoices_MailName=${config_UserChoices_MailName} 
    235     export DateBegin=${DateBegin} 
    236     export DateEnd=${DateEnd} 
    237     export R_SAVE=${R_SAVE} 
    238     export SUMBIT_DIR=${SUMBIT_DIR} 
    239  
    240231    cat  << END_MAIL > job_end.mail 
    241232Dear ${LOGIN}, 
     
    245236  Job ended   : ${DateEnd} 
    246237  Ouput files are available in ${R_SAVE} 
    247   Script files and Script Outputs are available in ${SUBMIT_DIR} 
     238  Script file and Script Outputs are available in ${SUBMIT_DIR} 
    248239END_MAIL 
    249240 
     
    253244       mailx -s "${config_UserChoices_JobName} completed" $( cat ~/.forward ) < job_end.mail 
    254245    fi 
    255  
    256     sleep 10 
    257     rm -f job_end.mail 
    258 EOF 
    259246 
    260247    if [ $? -gt 0 ] ; then 
Note: See TracChangeset for help on using the changeset viewer.