Re: <on-connect><on-disconnect> send email example?

Jordan Erickson <[email protected]>
Newsgroups gmane.comp.audio.icecast.general
Organization SubJam, SPC
Message-ID <[email protected]>
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" 
"[email protected]" < $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

_______________________________________________
Icecast mailing list
[email protected]
http://lists.xiph.org/mailman/listinfo/icecast
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.