Changeset 437 for trunk/libIGCM/libIGCM_sys/libIGCM_sys_vargas.ksh
- Timestamp:
- 04/06/11 17:16:38 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.