Jack Elliott
2022-Jul-08 22:51 UTC
[Icecast] <on-connect><on-disconnect> send email example?
Hi, running Icecast 2.40 here. Can someone point me to an example of a script that will send an email when a source-client connects, and when it disconnects? I'd like to include the name of the mountpoint in the email subject or body. Thank you! -- Jack Elliott Director of Classical Music Programming KPOV 88.9 FM High Desert Community Radio Bend, OR
Jordan Erickson
2022-Jul-10 04:05 UTC
[Icecast] <on-connect><on-disconnect> send email example?
Hey Jack, I had this lying around from a long time ago, I think it should still work, just needs some tweaking (namely the email address). --------------------- #!/bin/bash # # Actions to perform when a source connects to us # # Email contacts that want immediate notification ?? printf %b "\ Source connection established at $1 " > $EMAILMESSAGE ?? /usr/bin/mail -s "Source connection established" "myemail at mydomain.net" < $EMAILMESSAGE exit 0 --------------------- Cheers, Jordan On 7/8/22 15:51, Jack Elliott wrote:> Hi, running Icecast 2.40 here. Can someone point me to an example of a > script that will send an email when a source-client connects, and when > it disconnects? I'd like to include the name of the mountpoint in the > email subject or body. > > Thank you! >-- Jordan Erickson SubJam, SPC - https://subj.am/ +1 360.603.5039