Changeset 437 for trunk/libIGCM/libIGCM_sys/libIGCM_sys_brodie.ksh
- Timestamp:
- 04/06/11 17:16:38 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note: See TracChangeset
for help on using the changeset viewer.