Changeset 540 for trunk


Ignore:
Timestamp:
12/17/11 00:28:11 (12 years ago)
Author:
mmaipsl
Message:

Correct IGCM_sys_GetDate_FichWork and some IGCM_sys_Tar. Suppress DODS for obelix. Add IGCM_sys_RshMaster to connect to frontend.

File:
1 edited

Legend:

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

    r531 r540  
    8585typeset -r RSYNC_opt="-va" 
    8686# ie storage filesystem 
    87 typeset -r RHOST=mercure 
     87typeset -r STOREHOST=${MASTER} 
    8888 
    8989#==================================================== 
     
    169169function IGCM_sys_RshMaster { 
    170170    IGCM_debug_PushStack "IGCM_sys_RshMaster" $@ 
    171     ssh -t mercure01 /bin/ksh <<-EOF 
     171    ssh -t ${MASTER} /bin/ksh <<-EOF 
    172172    export libIGCM=${libIGCM} 
    173173    export DEBUG_debug=${DEBUG_debug} 
     
    396396#D-#================================================== 
    397397#D-function IGCM_sys_FileSize 
    398 #D-* Purpose: Filesize 
     398#D-* Purpose: File size 
    399399#D-* Examples: 
    400400#D- 
     
    500500        echo "IGCM_sys_Tar :" $@ 
    501501    fi 
    502     \tar xvf $1 
     502    \tar cf $@ 
    503503    if [ $? -gt 0 ] ; then 
    504504        echo "IGCM_sys_Tar : erreur." 
     
    924924 
    925925#       #RSYNC WITH NETWORK SSH CALL 
    926 #       echo ${RSYNC} ${RSYNC_opt} -e ssh ${RUN_DIR}/$1 ${RHOST}:${2} > out_rsync 2>&1 
    927 #       ${RSYNC} ${RSYNC_opt} -e ssh ${RUN_DIR}/$1 ${RHOST}:${2} >> out_rsync 2>&1 
     926#       echo ${RSYNC} ${RSYNC_opt} -e ssh ${RUN_DIR}/$1 ${STOREHOST}:${2} > out_rsync 2>&1 
     927#       ${RSYNC} ${RSYNC_opt} -e ssh ${RUN_DIR}/$1 ${STOREHOST}:${2} >> out_rsync 2>&1 
    928928 
    929929#       #RSYNC WITH NFS USE 
     
    996996 
    997997#       #RSYNC WITH NETWORK SSH CALL 
    998 #       echo ${RSYNC} ${RSYNC_opt} -e ssh ${RUN_DIR}/$1 ${RHOST}:${2} > out_rsync 2>&1 
    999 #       ${RSYNC} ${RSYNC_opt} -e ssh ${RUN_DIR}/$1 ${RHOST}:${2} >> out_rsync 2>&1 
     998#       echo ${RSYNC} ${RSYNC_opt} -e ssh ${RUN_DIR}/$1 ${STOREHOST}:${2} > out_rsync 2>&1 
     999#       ${RSYNC} ${RSYNC_opt} -e ssh ${RUN_DIR}/$1 ${STOREHOST}:${2} >> out_rsync 2>&1 
    10001000 
    10011001#       #RSYNC WITH NFS USE 
     
    10931093 
    10941094#       #RSYNC WITH NETWORK SSH CALL 
    1095 #       echo ${RSYNC} ${RSYNC_opt} -e ssh ${RHOST}:"${dm_liste}" ${RHOST}:${RUN_DIR}/${DEST} > out_rsync 2>&1 
    1096 #       ${RSYNC} ${RSYNC_opt} -e ssh ${RHOST}:"${dm_liste}" ${RHOST}:${RUN_DIR}/${DEST} >> out_rsync 2>&1 
     1095#       echo ${RSYNC} ${RSYNC_opt} -e ssh ${STOREHOST}:"${dm_liste}" ${STOREHOST}:${RUN_DIR}/${DEST} > out_rsync 2>&1 
     1096#       ${RSYNC} ${RSYNC_opt} -e ssh ${STOREHOST}:"${dm_liste}" ${STOREHOST}:${RUN_DIR}/${DEST} >> out_rsync 2>&1 
    10971097 
    10981098#       #RSYNC WITH NFS USE 
     
    11191119} 
    11201120 
    1121 ############################################################## A FINIR !! 
    1122  
    11231121#D-#================================================== 
    11241122#D-function IGCM_sys_GetDate_FichWork 
     
    11311129        echo "IGCM_sys_GetDate_FichWork :" $@ 
    11321130    fi 
     1131    typeset dateF 
     1132    set +A dateF -- $( ls -l --full-time --time-style='+%Y%m%d%H%M%S' ${1} ) 
     1133    eval ${2}=${dateF[5]} 
     1134 
    11331135    # donne la date filesys d'un fichier sur la machine work 
    11341136    IGCM_debug_PopStack "IGCM_sys_FichWork" 
     
    11451147        echo "IGCM_sys_GetDate_FichArchive :" $@ 
    11461148    fi 
     1149    typeset dateF 
     1150    set +A dateF -- $( ls -l --full-time --time-style='+%Y%m%d%H%M%S' ${1} ) 
     1151    eval ${2}=${dateF[5]} 
     1152 
    11471153    IGCM_debug_PopStack "IGCM_sys_FichArchive" 
    11481154} 
Note: See TracChangeset for help on using the changeset viewer.