Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- SUBJECT="Feed Alert ${1}"
- FEED="${1}"
- TO=someone@somedomain,anothersomeone@gmail.com
- MESSAGE="/etc/icecast2/message.txt"
- echo "Your receiving this notification as your feed, ${1}, on the server" > $MESSAGE
- echo "Network has dropped connection with the server." >> $MESSAGE
- echo "Please check your streaming software or devices." >> $MESSAGE
- echo " "
- echo "Thanks." >> $MESSAGE
- echo " "
- echo "Time: `date`" >> $MESSAGE
- /usr/bin/mail -s "$SUBJECT" "$TO" < $MESSAGE
- unset FEED
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement