Changeset 531


Ignore:
Timestamp:
12/12/11 09:02:40 (12 years ago)
Author:
mmaipsl
Message:

Add IGCM_sys_RshMaster to connect to Master frontend.

Location:
trunk/libIGCM/libIGCM_sys
Files:
3 edited

Legend:

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

    r458 r531  
    159159#- Max number of arguments passed to nco operator or demigration command 
    160160UNIX_MAX_LIMIT=360 
     161 
     162#D-#================================================== 
     163#D-function IGCM_sys_RshMaster 
     164#D-* Purpose: Connection to frontend machine. 
     165#D-* Examples: 
     166#D- 
     167function IGCM_sys_RshMaster { 
     168    IGCM_debug_PushStack "IGCM_sys_RshMaster" $@ 
     169    ssh -t mercure01 /bin/ksh <<-EOF 
     170    export libIGCM=${libIGCM} 
     171    export DEBUG_debug=${DEBUG_debug} 
     172    . ${libIGCM}/libIGCM_debug/libIGCM_debug.ksh 
     173    . ${libIGCM}/libIGCM_card/libIGCM_card.ksh 
     174    ${@} 
     175EOF 
     176    if [ $? -gt 0 ] ; then 
     177        echo "IGCM_sys_RshMaster : erreur." 
     178        IGCM_debug_Exit "IGCM_sys_RshMaster" 
     179    fi 
     180    IGCM_debug_PopStack "IGCM_sys_RshMaster" 
     181} 
    161182 
    162183#D-#================================================== 
  • trunk/libIGCM/libIGCM_sys/libIGCM_sys_mercurex9.ksh

    r452 r531  
    161161#- Max number of arguments passed to nco operator or demigration command 
    162162UNIX_MAX_LIMIT=360 
     163 
     164#D-#================================================== 
     165#D-function IGCM_sys_RshMaster 
     166#D-* Purpose: Connection to frontend machine. 
     167#D-* Examples: 
     168#D- 
     169function IGCM_sys_RshMaster { 
     170    IGCM_debug_PushStack "IGCM_sys_RshMaster" $@ 
     171    ssh -t mercure01 /bin/ksh <<-EOF 
     172    export libIGCM=${libIGCM} 
     173    export DEBUG_debug=${DEBUG_debug} 
     174    . ${libIGCM}/libIGCM_debug/libIGCM_debug.ksh 
     175    . ${libIGCM}/libIGCM_card/libIGCM_card.ksh 
     176    ${@} 
     177EOF 
     178    if [ $? -gt 0 ] ; then 
     179        echo "IGCM_sys_RshMaster : erreur." 
     180        IGCM_debug_Exit "IGCM_sys_RshMaster" 
     181    fi 
     182    IGCM_debug_PopStack "IGCM_sys_RshMaster" 
     183} 
    163184 
    164185#D-#================================================== 
  • trunk/libIGCM/libIGCM_sys/libIGCM_sys_titane.ksh

    r520 r531  
    170170#D-#================================================== 
    171171#D-function IGCM_sys_RshMaster 
    172 #D-* Purpose: Just a fake command to wrapp 
    173 #D-           IGCM_card call in post-treatment 
    174 #D-           Ulam do not see brodie filesystem 
    175 #D-           Cesium do not see all mercure filesystem 
    176 #D-           That's why we need this hack. 
     172#D-* Purpose: Connection to frontend machine. 
    177173#D-* Examples: 
    178174#D- 
    179175function IGCM_sys_RshMaster { 
    180176    IGCM_debug_PushStack "IGCM_sys_RshMaster" $@ 
    181     /bin/ksh <<-EOF 
     177    ssh -t titane1000 /bin/ksh <<-EOF 
    182178    export libIGCM=${libIGCM} 
    183179    export DEBUG_debug=${DEBUG_debug} 
Note: See TracChangeset for help on using the changeset viewer.