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