Changeset 437
- Timestamp:
- 04/06/11 17:16:38 (13 years ago)
- Location:
- trunk/libIGCM
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libIGCM/AA_job
r436 r437 276 276 # Test if all was right before proceeding further 277 277 # ------------------------------------------------------------------ 278 IGCM_debug_Verif_Exit_Post279 280 #D-281 # ------------------------------------------------------------------282 #D- Test if all was right before proceeding further283 # ------------------------------------------------------------------284 278 IGCM_debug_Verif_Exit 285 279 -
trunk/libIGCM/libIGCM_debug/libIGCM_debug.ksh
r409 r437 207 207 echo 208 208 fi 209 # Mail notification 210 IGCM_sys_SendMail 211 # And Good Bye 209 212 date 210 213 exit 1 … … 228 231 echo 229 232 fi 233 # Mail notification 234 #IGCM_sys_SendMail 235 # And Good Bye 230 236 date 231 237 exit 1 -
trunk/libIGCM/libIGCM_sys/libIGCM_sys_brodie.ksh
r434 r437 183 183 fi 184 184 185 cat << END_MAIL > job_end.mail 185 if ( ${ExitFlag} ) ; then 186 status=FAILED 187 cat << END_MAIL > job_end.mail 188 Dear ${LOGIN}, 189 190 Simulation ${config_UserChoices_JobName} failed on supercomputer `hostname`. 191 Job started : ${PeriodDateBegin} 192 Job ended : ${PeriodDateEnd} 193 Output files are available in ${R_SAVE} 194 Script files, Script Outputs and Debug files are available in ${SUBMIT_DIR} 195 END_MAIL 196 else 197 status=COMPLETED 198 cat << END_MAIL > job_end.mail 186 199 Dear ${LOGIN}, 187 200 … … 193 206 END_MAIL 194 207 208 fi 209 195 210 if [ X${config_UserChoices_MailName} != X ] ; then 196 mailx -s "${config_UserChoices_JobName} completed" ${config_UserChoices_MailName} < job_end.mail211 mailx -s "${config_UserChoices_JobName} ${status}" ${config_UserChoices_MailName} < job_end.mail 197 212 elif [ -f ~/.forward ] ; then 198 mailx -s "${config_UserChoices_JobName} completed" $( cat ~/.forward ) < job_end.mail213 mailx -s "${config_UserChoices_JobName} ${status}" $( cat ~/.forward ) < job_end.mail 199 214 else 200 mailx -s "${config_UserChoices_JobName} completed" ${USER} < job_end.mail215 mailx -s "${config_UserChoices_JobName} ${status}" ${USER} < job_end.mail 201 216 fi 202 217 -
trunk/libIGCM/libIGCM_sys/libIGCM_sys_cesium.ksh
r434 r437 252 252 mailx -s "${config_UserChoices_JobName} completed" $( cat ~/.forward ) < job_end.mail 253 253 fi 254 255 254 sleep 10 256 255 rm -f job_end.mail -
trunk/libIGCM/libIGCM_sys/libIGCM_sys_default.ksh
r434 r437 214 214 fi 215 215 216 cat << END_MAIL > job_end.mail 216 if ( ${ExitFlag} ) ; then 217 status=FAILED 218 cat << END_MAIL > job_end.mail 219 Dear ${LOGIN}, 220 221 Simulation ${config_UserChoices_JobName} failed on supercomputer `hostname`. 222 Job started : ${PeriodDateBegin} 223 Job ended : ${PeriodDateEnd} 224 Output files are available in ${R_SAVE} 225 Script files, Script Outputs and Debug files are available in ${SUBMIT_DIR} 226 END_MAIL 227 else 228 status=COMPLETED 229 cat << END_MAIL > job_end.mail 217 230 Dear ${LOGIN}, 218 231 … … 223 236 Script files and Script Outputs are available in ${SUBMIT_DIR} 224 237 END_MAIL 238 fi 225 239 226 240 if [ ! -z ${config_UserChoices_MailName} ] ; then 227 mailx -s "${config_UserChoices_JobName} completed" ${config_UserChoices_MailName} < job_end.mail241 mailx -s "${config_UserChoices_JobName} ${status}" ${config_UserChoices_MailName} < job_end.mail 228 242 elif [ -f ~/.forward ] ; then 229 mailx -s "${config_UserChoices_JobName} completed" $( cat ~/.forward ) < job_end.mail243 mailx -s "${config_UserChoices_JobName} ${status}" $( cat ~/.forward ) < job_end.mail 230 244 fi 231 245 -
trunk/libIGCM/libIGCM_sys/libIGCM_sys_iitm.ksh
r428 r437 201 201 echo "IGCM_sys_SendMail :" $@ 202 202 fi 203 cat << END_MAIL > job_end.mail 203 204 if ( ${ExitFlag} ) ; then 205 status=FAILED 206 cat << END_MAIL > job_end.mail 207 Dear ${LOGIN}, 208 209 Simulation ${config_UserChoices_JobName} failed on supercomputer `hostname`. 210 Job started : ${PeriodDateBegin} 211 Job ended : ${PeriodDateEnd} 212 Output files are available in ${R_SAVE} 213 Script files, Script Outputs and Debug files are available in ${SUBMIT_DIR} 214 END_MAIL 215 else 216 status=COMPLETED 217 cat << END_MAIL > job_end.mail 204 218 Dear ${LOGIN}, 205 219 … … 210 224 Script files and Script Outputs are available in ${SUBMIT_DIR} 211 225 END_MAIL 226 fi 212 227 213 228 if [ ! -z ${config_UserChoices_MailName} ] ; then 214 mailx -s "${config_UserChoices_JobName} completed" ${config_UserChoices_MailName} < job_end.mail229 mailx -s "${config_UserChoices_JobName} ${status}" ${config_UserChoices_MailName} < job_end.mail 215 230 elif [ -f ~/.forward ] ; then 216 mailx -s "${config_UserChoices_JobName} completed" $( cat ~/.forward ) < job_end.mail231 mailx -s "${config_UserChoices_JobName} ${status}" $( cat ~/.forward ) < job_end.mail 217 232 else 218 mailx -s "${config_UserChoices_JobName} completed" ${USER} < job_end.mail233 mailx -s "${config_UserChoices_JobName} ${status}" ${USER} < job_end.mail 219 234 fi 220 235 -
trunk/libIGCM/libIGCM_sys/libIGCM_sys_mercurex8.ksh
r434 r437 228 228 fi 229 229 230 ssh mercure /bin/ksh <<-EOF 230 if ( ${ExitFlag} ) ; then 231 status=FAILED 232 # Nothing fo now 233 else 234 status=COMPLETED 235 ssh mercure /bin/ksh <<-EOF 231 236 export LOGIN=${LOGIN} 232 237 export config_UserChoices_JobName=${config_UserChoices_JobName} … … 256 261 rm -f job_end.mail 257 262 EOF 263 fi 258 264 259 265 if [ $? -gt 0 ] ; then -
trunk/libIGCM/libIGCM_sys/libIGCM_sys_mercurex9.ksh
r434 r437 236 236 fi 237 237 238 cat << END_MAIL > job_end.mail 238 if ( ${ExitFlag} ) ; then 239 status=FAILED 240 cat << END_MAIL > job_end.mail 241 Dear ${LOGIN}, 242 243 Simulation ${config_UserChoices_JobName} failed on supercomputer `hostname`. 244 Job started : ${PeriodDateBegin} 245 Job ended : ${PeriodDateEnd} 246 Output files are available in ${R_SAVE} 247 Script files, Script Outputs and Debug files are available in ${SUBMIT_DIR} 248 END_MAIL 249 else 250 status=COMPLETED 251 cat << END_MAIL > job_end.mail 239 252 Dear ${LOGIN}, 240 253 … … 245 258 Script files and Script Outputs are available in ${SUBMIT_DIR} 246 259 END_MAIL 260 fi 247 261 248 262 if [ X"${config_UserChoices_MailName}" != X ] ; then 249 mailx -s "${config_UserChoices_JobName} completed" ${config_UserChoices_MailName} < job_end.mail263 mailx -s "${config_UserChoices_JobName} ${status}" ${config_UserChoices_MailName} < job_end.mail 250 264 elif [ -f ~/.forward ] ; then 251 mailx -s "${config_UserChoices_JobName} completed" $( cat ~/.forward ) < job_end.mail265 mailx -s "${config_UserChoices_JobName} ${status}" $( cat ~/.forward ) < job_end.mail 252 266 else 253 mailx -s "${config_UserChoices_JobName} completed" ${LOGIN} < job_end.mail267 mailx -s "${config_UserChoices_JobName} ${status}" ${LOGIN} < job_end.mail 254 268 fi 255 269 -
trunk/libIGCM/libIGCM_sys/libIGCM_sys_obelix.ksh
r434 r437 230 230 fi 231 231 232 cat << END_MAIL > job_end.mail 232 if ( ${ExitFlag} ) ; then 233 status=FAILED 234 cat << END_MAIL > job_end.mail 235 Dear ${LOGIN}, 236 237 Simulation ${config_UserChoices_JobName} failed on supercomputer `hostname`. 238 Job started : ${PeriodDateBegin} 239 Job ended : ${PeriodDateEnd} 240 Output files are available in ${R_SAVE} 241 Script files, Script Outputs and Debug files are available in ${SUBMIT_DIR} 242 END_MAIL 243 else 244 status=COMPLETED 245 cat << END_MAIL > job_end.mail 233 246 Dear ${LOGIN}, 234 247 … … 239 252 Script files and Script Outputs are available in ${SUBMIT_DIR} 240 253 END_MAIL 254 fi 241 255 242 256 if [ ! -z ${config_UserChoices_MailName} ] ; then 243 mailx -s "${config_UserChoices_JobName} completed" ${config_UserChoices_MailName} < job_end.mail257 mailx -s "${config_UserChoices_JobName} ${status}" ${config_UserChoices_MailName} < job_end.mail 244 258 elif [ -f ~/.forward ] ; then 245 mailx -s "${config_UserChoices_JobName} completed" $( cat ~/.forward ) < job_end.mail259 mailx -s "${config_UserChoices_JobName} ${status}" $( cat ~/.forward ) < job_end.mail 246 260 fi 247 261 -
trunk/libIGCM/libIGCM_sys/libIGCM_sys_platine.ksh
r434 r437 224 224 echo "IGCM_sys_SendMail :" $@ 225 225 fi 226 cat << END_MAIL > job_end.mail 226 227 if ( ${ExitFlag} ) ; then 228 status=FAILED 229 cat << END_MAIL > job_end.mail 230 Dear ${LOGIN}, 231 232 Simulation ${config_UserChoices_JobName} failed on supercomputer `hostname`. 233 Job started : ${PeriodDateBegin} 234 Job ended : ${PeriodDateEnd} 235 Output files are available in ${R_SAVE} 236 Script files, Script Outputs and Debug files are available in ${SUBMIT_DIR} 237 END_MAIL 238 else 239 status=COMPLETED 240 cat << END_MAIL > job_end.mail 227 241 Dear ${LOGIN}, 228 242 … … 233 247 Script files and Script Outputs are available in ${SUBMIT_DIR} 234 248 END_MAIL 249 fi 235 250 236 251 if [ ! -z ${config_UserChoices_MailName} ] ; then 237 mailx -s "${config_UserChoices_JobName} completed" ${config_UserChoices_MailName} < job_end.mail252 mailx -s "${config_UserChoices_JobName} ${status}" ${config_UserChoices_MailName} < job_end.mail 238 253 elif [ -f ~/.forward ] ; then 239 mailx -s "${config_UserChoices_JobName} completed" $( cat ~/.forward ) < job_end.mail254 mailx -s "${config_UserChoices_JobName} ${status}" $( cat ~/.forward ) < job_end.mail 240 255 fi 241 256 -
trunk/libIGCM/libIGCM_sys/libIGCM_sys_titane.ksh
r434 r437 252 252 fi 253 253 254 IGCM_sys_RshPost <<-EOF 254 if ( ${ExitFlag} ) ; then 255 status=FAILED 256 # Nothing more at this point of time 257 else 258 status=COMPLETED 259 IGCM_sys_RshPost <<-EOF 255 260 export LOGIN=${LOGIN} 256 261 export config_UserChoices_JobName=${config_UserChoices_JobName} … … 280 285 rm -f job_end.mail 281 286 EOF 287 fi 282 288 283 289 if [ $? -gt 0 ] ; then -
trunk/libIGCM/libIGCM_sys/libIGCM_sys_vargas.ksh
r434 r437 183 183 echo "IGCM_sys_SendMail :" $@ 184 184 fi 185 cat << END_MAIL > job_end.mail 185 186 if ( ${ExitFlag} ) ; then 187 status=FAILED 188 cat << END_MAIL > job_end.mail 189 Dear ${LOGIN}, 190 191 Simulation ${config_UserChoices_JobName} failed on supercomputer `hostname`. 192 Job started : ${PeriodDateBegin} 193 Job ended : ${PeriodDateEnd} 194 Output files are available in ${R_SAVE} 195 Script files, Script Outputs and Debug files are available in ${SUBMIT_DIR} 196 END_MAIL 197 else 198 status=COMPLETED 199 cat << END_MAIL > job_end.mail 186 200 Dear ${LOGIN}, 187 201 … … 192 206 Script files and Script Outputs are available in ${SUBMIT_DIR} 193 207 END_MAIL 208 fi 194 209 195 210 if [ ! -z ${config_UserChoices_MailName} ] ; then 196 mailx -s "${config_UserChoices_JobName} completed" ${config_UserChoices_MailName} < job_end.mail211 mailx -s "${config_UserChoices_JobName} ${status}" ${config_UserChoices_MailName} < job_end.mail 197 212 elif [ -f ~/.forward ] ; then 198 mailx -s "${config_UserChoices_JobName} completed" $( cat ~/.forward ) < job_end.mail213 mailx -s "${config_UserChoices_JobName} ${status}" $( cat ~/.forward ) < job_end.mail 199 214 else 200 mailx -s "${config_UserChoices_JobName} completed" ${USER} < job_end.mail215 mailx -s "${config_UserChoices_JobName} ${status}" ${USER} < job_end.mail 201 216 fi 202 217
Note: See TracChangeset
for help on using the changeset viewer.