Changeset 1822 for TOOLS/PACK_IPSL/write_liste_pack.sh
- Timestamp:
- 07/19/12 16:02:21 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TOOLS/PACK_IPSL/write_liste_pack.sh
r1769 r1822 28 28 SCRIPT_NAME=$(basename ${0} ) 29 29 source ${EXE_DIR}/DEM_utilities.sh 30 31 # gpdebug : verif si le present script a ete execute jusqu'au bout ######### 32 MonitoringInfo="${SCRIPT_NAME}-->OK" 33 simuMonitoring_check "$MonitoringInfo" "$config_card" 34 35 # gpdebug : Execute la function errorReceive() si reception d'un signal TERM 36 trap 'DEM_errorReceive' TERM ######## 37 38 # gpdebug : on augmente la liste des proc à détruire en cas d'erreur bloquante du présent proc 39 export listPID="$$ ${listPID}" ######### 40 30 41 DEM_log -0 "Demmarrage de ${SCRIPT_NAME}" 31 42 cd ${JOB_DIR} … … 43 54 SIMUL=${PATH_SIMUL_FULL}/${JobName} 44 55 56 45 57 DEM_state=$( DEM_read_state ${IGCM_DEM}/config_card.liste ${config_card} ) 46 if [[ "${DEM_state}" != "FindSizePackDone" ]] ; then 47 DEM_log -0 "Attention : Etat incorrect dans ${IGCM_DEM}/config_card.liste" 48 exit -158 # gpdebug : si c'est une premiere exec (pas une reprise) 59 if [[ "x${execEveryStep}" == "1" ]] && [[ "${DEM_state}" != "FindSizePackDone" ]] ; then 60 DEM_errorSend "${SCRIPT_NAME}:${LINENO}:Etat incorrect dans ${IGCM_DEM}/config_card.liste" 49 61 fi 62 50 63 51 64 DEM_write_state ${IGCM_DEM}/config_card.liste ${config_card} WriteListPackRunning … … 244 257 DEM_write_state ${IGCM_DEM}/config_card.liste ${config_card} WriteListPackDone 245 258 259 # gpdebug : le script n'a pas rencontre d'erreur. On l'inscrit dans le fichier de suivi 260 simuMonitoring_OK "$MonitoringInfo" "$config_card" 261 246 262 DEM_log -0 "Fin de ${SCRIPT_NAME}" 247 263
Note: See TracChangeset
for help on using the changeset viewer.