Ignore:
Timestamp:
03/05/10 14:27:19 (14 years ago)
Author:
aclsce
Message:

Added correction done for all the machines except for titane :
Add an optionnal argument to all IGCM_sys_Put_Out functions :
if any 3thrd argument is there, file won't be protected. If
there is no argument (default in libIGCM), file will be set read-only.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tags/libIGCM_v1_5/libIGCM_sys/libIGCM_sys_titane.ksh

    r222 r244  
    6464 
    6565#===================================================== 
    66 # Host and user names  
    67 # $hostname ou hostname  
    68 typeset -r HOST=$( hostname ) 
     66# Host and user names 
     67# $hostname ou hostname 
     68typeset  HOST=${HOST:=$( hostname )} 
    6969# $username ou whoami 
    70 typeset -r LOGIN=$( whoami ) 
     70typeset  LOGIN=${LOGIN:=$( whoami )} 
    7171# $hostname of the MASTER job 
    7272typeset MASTER=titane 
     
    925925        RET=$? 
    926926 
    927 #       #RSYNC WITH NETWORK RSH CALL 
     927#       #RSYNC WITH NETWORK SSH CALL 
    928928#       echo ${RSYNC} ${RSYNC_opt} -e ssh ${RUN_DIR}/$1 ${RHOST}:${2} > out_rsync 2>&1 
    929929#       ${RSYNC} ${RSYNC_opt} -e ssh ${RUN_DIR}/$1 ${RHOST}:${2} >> out_rsync 2>&1 
     
    986986 
    987987        if [ X${JobType} = XRUN ] ; then 
    988             IGCM_sys_Chmod 444 ${1} 
     988            if [ X${3} = X ] ; then 
     989                IGCM_sys_Chmod 444 ${1} 
     990            fi 
    989991        fi 
    990992        # 
     
    993995        RET=$? 
    994996 
    995 #       #RSYNC WITH NETWORK RSH CALL 
     997#       #RSYNC WITH NETWORK SSH CALL 
    996998#       echo ${RSYNC} ${RSYNC_opt} -e ssh ${RUN_DIR}/$1 ${RHOST}:${2} > out_rsync 2>&1 
    997999#       ${RSYNC} ${RSYNC_opt} -e ssh ${RUN_DIR}/$1 ${RHOST}:${2} >> out_rsync 2>&1 
     
    10881090        fi 
    10891091 
    1090 #       #RSYNC WITH NETWORK RSH CALL 
     1092#       #RSYNC WITH NETWORK SSH CALL 
    10911093#       echo ${RSYNC} ${RSYNC_opt} -e ssh ${RHOST}:"${dm_liste}" ${RHOST}:${RUN_DIR}/${DEST} > out_rsync 2>&1 
    10921094#       ${RSYNC} ${RSYNC_opt} -e ssh ${RHOST}:"${dm_liste}" ${RHOST}:${RUN_DIR}/${DEST} >> out_rsync 2>&1 
Note: See TracChangeset for help on using the changeset viewer.