Ignore:
Timestamp:
12/03/22 10:29:50 (17 months ago)
Author:
ssenesi
Message:

house-keeping scripts hanlde CESMEP outputs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/libIGCM_CESMEP/ins_job

    r1564 r1567  
    659659[ ${new_struct?} == yes ] && prefix="$JobName/"   
    660660IGCM_card_DefineVariableFromOption ${prefix}config.card Post Cesmep 
    661  
    662661if [ ${config_Post_Cesmep} != FALSE ]; then 
    663662    IGCM_config_CommonConfiguration ${prefix}config.card 
    664     # Compute mail adress - inspired by libIGCM_post.ksh - should be turned in a function  
    665     if [ ! -z ${config_UserChoices_MailName} ] ; then 
    666         MailAdress=${config_UserChoices_MailName} 
    667     elif [ -f ~/.forward ] ; then 
    668         MailAdress=$( cat ~/.forward ) 
     663    if [ x"${config_Post_CesmepMail}" == x"TRUE" ] || [ x"${config_Post_CesmepMail}" == x"True" ] ; then 
     664        # Compute mail adress - inspired by libIGCM_post.ksh - should be turned in a function  
     665        if [ ! -z ${config_UserChoices_MailName} ] ; then 
     666            MailAdress=${config_UserChoices_MailName} 
     667        elif [ -f ~/.forward ] ; then 
     668            MailAdress=$( cat ~/.forward ) 
     669        else 
     670            MailAdress=${USER} 
     671        fi 
    669672    else 
    670         MailAdress=${USER} 
     673        MailAdress=None 
    671674    fi 
    672675    # 
Note: See TracChangeset for help on using the changeset viewer.