Changes between Version 3 and Version 4 of ErrorCodeCheck
- Timestamp:
- 07/10/13 10:05:23 (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ErrorCodeCheck
v3 v4 70 70 # check for a email address 71 71 if [[ $EMAIL ]]; then 72 # we were supplied with a email address so send the results by email using mutt73 72 # name of the server 74 73 HOSTNAME=$(hostname) 75 74 # email subject line 76 75 SUBJECT="$ERRORS_403 403, $ERRORS_404 404, $ERRORS_502 502, $ERRORS_503 503 and $ERRORS_504 504 errors from $HOSTNAME" 76 # we were supplied with a email address so send the results by email using mutt 77 77 echo "$ERRORS" | mutt -s "$SUBJECT" $EMAIL 78 78 # we don't have a email address so display the results of the grep