#!/bin/bash

STDIN=$(</dev/stdin)

MSG="$1 cronjob on $(cat /etc/hostname) just exited.\n\`\`\`\n$STDIN\n\`\`\`"

echo -e "$MSG" | /usr/local/bin/go-sendxmpp -tr 'Alert' -c alerts@muc.nixnet.services
