Permalink
Browse files

Update 2018-10-24-cron_monitoring_in_slack.md

  • Loading branch information...
Kraymer committed Oct 25, 2018
1 parent ea50b75 commit b7d26e8f357e022abf073480c04d07b713a2ab76
Showing with 0 additions and 1 deletion.
  1. +0 −1 _posts/2018-10-24-cron_monitoring_in_slack.md
@@ -24,7 +24,6 @@ that posts stdin to slack.
runcheck() {
ERR="$($@ 2>&1 > /dev/null)"
if [ $? -ne 0 ]; then
PROG=${1##*/}
echo "\`${1##*/}\` failed" | /usr/local/bin/slacktee.sh -p -u "$HOSTNAME" --config /home/ubuntu/.slacktee-alert
echo "> ${ERR}" | /usr/local/bin/slacktee.sh -p -u "$HOSTNAME" --config /home/ubuntu/.slacktee-alert
fi

0 comments on commit b7d26e8

Please sign in to comment.