Advertisement
Guest User

Untitled

a guest
Mar 1st, 2015
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.50 KB | None | 0 0
  1. #!/bin/bash
  2. SUBJECT="Feed Alert ${1}"
  3. FEED="${1}"
  4. TO=someone@somedomain,anothersomeone@gmail.com
  5. MESSAGE="/etc/icecast2/message.txt"
  6.  
  7. echo "Your receiving this notification as your feed, ${1}, on the server" > $MESSAGE
  8. echo "Network has dropped connection with the server." >> $MESSAGE
  9. echo "Please check your streaming software or devices." >> $MESSAGE
  10. echo " "
  11. echo "Thanks." >> $MESSAGE
  12. echo " "
  13. echo "Time: `date`" >> $MESSAGE
  14.  
  15. /usr/bin/mail -s "$SUBJECT" "$TO" < $MESSAGE
  16.  
  17. unset FEED
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement