Changeset 1978
- Timestamp:
- 12/17/12 19:51:34 (12 years ago)
- Location:
- TOOLS/PACK_IPSL
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TOOLS/PACK_IPSL/monitoring.sh
r1899 r1978 3 3 # Variables a renseigner 4 4 # Stockage des fichiers pour monitoring de tous les users (pour l instant sur p86caub) 5 export MONIT_DIR= $CCCWORKDIR/MONIT_MIGRATION6 export DODS_MONIT= $CCCWORKDIR/../../dods/public/p86caub/MONIT_MIGRATION5 export MONIT_DIR=/ccc/work/cont003/dods/public/MONIT_DIR 6 export DODS_MONIT=/ccc/work/cont003/dods/public/DODS_MONIT 7 7 8 8 testr=`LC_ALL=C date +"%Y%m%dT%H%M"` … … 18 18 if [ -e ${MONIT_DIR}/monit_all_new.txt ] 19 19 then 20 tail -1 monit_${USER}.txt >> ${MONIT_DIR}/monit_all_new.txt20 tail -1 ${MONIT_DIR}/monit_${USER}.txt >> ${MONIT_DIR}/monit_all_new.txt 21 21 else 22 22 cp monit_header.txt ${MONIT_DIR}/monit_all_new.txt 23 tail -1 monit_${USER}.txt >> ${MONIT_DIR}/monit_all_new.txt23 tail -1 ${MONIT_DIR}/monit_${USER}.txt >> ${MONIT_DIR}/monit_all_new.txt 24 24 fi 25 25 … … 30 30 mv ${MONIT_DIR}/monit_all_new.txt ${MONIT_DIR}/monit_all.txt 31 31 32 if [ -d ${MONIT_DIR}/${USER}_SIMUS ]33 then34 rm -rf ${MONIT_DIR}/${USER}_SIMUS35 fi36 cp -rf ${USER}_SIMUS ${MONIT_DIR}/.32 #if [ -d ${MONIT_DIR}/${USER}_SIMUS ] 33 #then 34 # rm -rf ${MONIT_DIR}/${USER}_SIMUS 35 #fi 36 #cp -rf ${USER}_SIMUS ${MONIT_DIR}/. 37 37 38 if [ "x$DODS_MONIT" != "x" ]39 then40 rm -rf $DODS_MONIT41 fi42 cp - alf $MONIT_DIR ${DODS_MONIT}38 #if [ "x$DODS_MONIT" != "x" ] 39 #then 40 # rm -rf $DODS_MONIT 41 #fi 42 cp -prf $MONIT_DIR/* ${DODS_MONIT}/. 43 43 chmod -R o+rX ${DODS_MONIT} -
TOOLS/PACK_IPSL/showPackProgress.sh
r1913 r1978 318 318 -p) echo "option -p selectionnee : publication" 319 319 publish_mode=0 320 outputFile=" monit_${USER}.txt"321 outputFile_simus="${ USER}_SIMUS/monit_${USER}_simus.txt"322 if [ -d ${ USER}_SIMUS ]320 outputFile="${MONIT_DIR}/monit_${USER}.txt" 321 outputFile_simus="${MONIT_DIR}/${USER}_SIMUS/monit_${USER}_simus.txt" 322 if [ -d ${MONIT_DIR}/${USER}_SIMUS ] 323 323 then 324 rm -f ${ USER}_SIMUS/*324 rm -f ${MONIT_DIR}/${USER}_SIMUS/* 325 325 else 326 mkdir -p ${ USER}_SIMUS326 mkdir -p ${MONIT_DIR}/${USER}_SIMUS 327 327 fi 328 328 echo "Simulation;Status" > ${outputFile_simus} … … 486 486 then 487 487 simuName_modif=$( echo $simuName | sed s%"/"%"_"%g ) 488 cat ${JOB_DIR}/simuPrint.txt $outRedirectStatemen > ${ USER}_SIMUS/${simuName_modif}".log"488 cat ${JOB_DIR}/simuPrint.txt $outRedirectStatemen > ${MONIT_DIR}/${USER}_SIMUS/${simuName_modif}".log" 489 489 fi 490 490 fi
Note: See TracChangeset
for help on using the changeset viewer.