- Timestamp:
- 01/29/15 18:53:48 (9 years ago)
- Location:
- trunk/libIGCM
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libIGCM/AA_metrics_LMDZ
r1160 r1162 152 152 153 153 #================================== 154 # Export metrics to prodiguer system 155 #================================== 156 #IGCM_debug_sendAMQP_Metrics METRICS/SE_${YEARS} 157 158 #================================== 154 159 # Save files 155 160 #================================== … … 158 163 IGCM_sys_Rm ${config_UserChoices_JobName}_SE_${YEARS}_1M_histmth.nc 159 164 160 #==================================161 # DODS copy162 #==================================163 if [ X${config_Post_DodsCopy} = XTRUE ] ; then164 IGCM_sys_TestDirArchive ${R_FIGR}/${R_METRICS}165 [ $? = 0 ] && IGCM_sys_Put_Dods ${R_METRICS}166 fi167 165 # Clean RUN_DIR_PATH (necessary for cesium and titane only) 168 166 IGCM_sys_RmRunDir -Rf ${RUN_DIR_PATH} -
trunk/libIGCM/libIGCM_debug/libIGCM_debug.ksh
r1153 r1162 175 175 rm -f ${buffer} # cleaning behind us 176 176 rm -f ${last_mail_date__file} # cleaning behind us 177 fi 178 179 # Allways all good for now. 180 return 0 181 } 182 183 #D-#================================================================== 184 #D-function IGCM_debug_sendAMQP_Metrics 185 #D- * Purpose: Take over AMQP C client using mail as a message recipient 186 #D- * One argument : Directory where metrics.json files can be found 187 #D- * Attach encoded metrics.json files. 188 189 function IGCM_debug_sendAMQP_Metrics { 190 191 typeset mail_recipient encodedBody 192 if [ X${ActivateBigBro} = Xtrue ] ; then 193 mail_recipient="superviseur@ipsl.jussieu.fr" 194 # Metrics tag on server side 195 code=7100 196 # Usual AMQP message to route messages on server side 197 encodedBody=$( echo "{${genericSimulationID},\"msgCode\":\"${code}\",\"msgUID\":\"$(uuidgen)\",\"msgTimestamp\":\"$( date +"%Y-%m-%dT%H:%M:%S.%N%z" )\"}" | base64 -w 0 ) 198 # send mail 199 attachmentsOptions="" 200 for metricsFile in $( ls $1/*json ) ; do 201 attachmentsOptions="-a ${metricsFile} ${attachmentsOptions}" 202 done 203 echo ${encodedBody}|mailx -s "[TEMPORARY AMQP CHANNEL]" ${attachmentsOptions} ${mail_recipient} 177 204 fi 178 205
Note: See TracChangeset
for help on using the changeset viewer.