Changeset 132


Ignore:
Timestamp:
06/11/09 13:01:22 (15 years ago)
Author:
sdipsl
Message:

Minimize rsh from vargas to others machine
Reflect the fact that Ulam can see Gaya filesystem
Manage AIX vargas system time soi that run.card is filled properly.

Location:
trunk/libIGCM/libIGCM_sys
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/libIGCM_sys/IGCM_add_out.awk

    r114 r132  
    5656 
    5757  Information_found=0 
     58  vargas_found=0 
    5859 
    5960  RealTime=0. 
     
    229230    RealTime=(substr($3,1,match($3, ":")-1)*60.+substr($3, match($3, ":")+1, match($3, "elapsed"))) 
    230231 
     232  } 
     233# AIX vargas system time 
     234  else if (match($0, "real\ \ \ [0-9]*")) 
     235  { 
     236    myprint( "vargas" ) 
     237    vargas_found=1   
     238    counter=counter+1 
     239 
     240    RealTime=substr($0,8) 
     241    next 
     242  } 
     243  else if (vargas_found=1 ) 
     244  { 
     245    if (match($0, "user\ \ \ [0-9]*")) 
     246      { 
     247        UserTime=substr($0,8) 
     248        next 
     249      } 
     250    if (match($0, "sys\ \ \ \ [0-9]*")) 
     251      { 
     252        SysTime=substr($0,7) 
     253        next 
     254      } 
    231255  } 
    232256 
  • trunk/libIGCM/libIGCM_sys/libIGCM_sys_ulam.ksh

    r130 r132  
    116116#==================================================== 
    117117#- ARCHIVE 
    118 typeset -r ARCHIVE=$( rsh gaya -n env | grep PWD | gawk "-F=" '{print $2}' ) 
     118typeset -r ARCHIVE=$HOMEGAYA 
    119119 
    120120#==================================================== 
     
    167167function IGCM_sys_RshArchive { 
    168168    IGCM_debug_PushStack "IGCM_sys_RshArchive" $@ 
    169     rsh gaya exec /bin/ksh <<-EOF 
     169    /bin/ksh <<-EOF 
    170170    ${@} 
    171171EOF 
  • trunk/libIGCM/libIGCM_sys/libIGCM_sys_vargas.ksh

    r128 r132  
    101101#==================================================== 
    102102#- ARCHIVE 
    103 typeset -r ARCHIVE=$( rsh gaya -n env | grep PWD | gawk "-F=" '{print $2}' ) 
     103typeset -r ARCHIVE=$( echo ${HOME} | sed -e "s/homegpfs/u/" ) 
    104104 
    105105#==================================================== 
     
    110110#- libIGCM_POST 
    111111PATHlibIGCM=$( echo ${libIGCM} | gawk -F"${LOGIN}/" '{print $2}' | sed -e "s&/libIGCM&&" ) 
    112 typeset -r HOME_POST=$(rsh ulam -n pwd) 
     112typeset -r HOME_POST=$( echo ${HOME} | sed -e "s/homegpfs/home/" ) 
    113113typeset -r libIGCM_POST=${HOME_POST}/${PATHlibIGCM}/libIGCM 
    114114 
     
    123123#==================================================== 
    124124#- OUT_POST  
    125 typeset -r R_OUT_POST=$( rsh ulam -n echo \${HOME} | sed -e "s/home/workdir/" )/IGCM_OUT 
     125typeset -r R_OUT_POST=$( echo ${HOME} | sed -e "s/homegpfs/workdir/" )/IGCM_OUT 
    126126 
    127127#==================================================== 
     
    584584function IGCM_sys_Mirror_libIGCM { 
    585585    IGCM_debug_PushStack "IGCM_sys_Mirror_libIGCM" 
    586 set -x 
    587586    if ( $DEBUG_sys ) ; then 
    588587        echo "IGCM_sys_Mirror_libIGCM" 
     
    610609        echo "No POST-TREATMENT avaible because ulam is down." 
    611610    fi 
    612 set +x 
    613611    IGCM_debug_PopStack "IGCM_sys_Mirror_libIGCM" 
    614612} 
Note: See TracChangeset for help on using the changeset viewer.