<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Following. I've also not gotten <on-connect> /
      <on-disconnect> to launch a script that sends me a
      notification email. The script is located at /home/my_username/bin</p>
    <p>The script runs from command line. <br>
    </p>
    <pre>        <on-connect>/home/my_username/bin/email_onconnect.sh</on-connect>
        <on-disconnect>/home/my_username/bin/email_ondisconnect.sh</on-disconnect>
</pre>
    <p>It is intended to run when a remote source client connects. <br>
    </p>
    <p>Is it possible that by having a fallback-mount (pointing to a
      local mp3) in the mountpoint "blocks" <on-connect>? IOW,
      because there is always a source client connected, either the
      fallback or a remote source client, there is no connecting event
      to trigger the command?</p>
    <p>Thank you!<br>
    </p>
    <pre class="moz-signature" cols="72">-- 
Jack Elliott
Director of Classical Music Programming
High Desert Community Radio
KPOV Bend, Oregon</pre>
    <div class="moz-cite-prefix">On 7/14/22 10:14 PM, Jordan Erickson
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:fdcaf31c-ffd1-b234-9211-c988eeb7b996@subj.am">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <div class="moz-cite-prefix">Hi Jack,<br>
        <br>
        Does the user user actually running the Icecast process have
        access to the scripts within the /home/my_username/bin
        directory? Not sure if Icecast is running as $my_username from
        what you've said here. I'm also not sure if Icecast checks
        access to each script specified in the config for access during
        startup/reload.<br>
        <br>
        <br>
        Cheers,<br>
        Jordan<br>
        <br>
        <pre class="moz-signature" cols="72">-- 
Jordan Erickson
SubJam, SPC - <a class="moz-txt-link-freetext" href="https://subj.am/" moz-do-not-send="true">https://subj.am/</a>
+1 360.603.5039</pre>
        <br>
        On 7/14/22 08:16, Jack Elliott wrote:<br>
      </div>
      <blockquote type="cite"
        cite="mid:0ed1e99b-e780-e4a4-c206-5e03543ba496@kpov.org">
        <meta http-equiv="content-type" content="text/html;
          charset=UTF-8">
        <p>Hi, <br>
        </p>
        <p>Icecast server 2.4.0 running on Linux.</p>
        <p>I have a couple of shell scripts that send emails on connect
          and on disconnect. From the command line they work, but when
          called from icecast they do not. <br>
        </p>
        <p>Here is the mount section of my icecast.xml:</p>
        <p><font face="monospace"><mount type="normal"><br>
                    <mount-name>/my_stream</mount-name><br>
                   
            <fallback-mount>/fallbacks/my_fallback.mp3</fallback-mount><br>
                    <fallback-override>1</fallback-override><br>
                   
            <fallback-when-full>1</fallback-when-full><br>
                    <b><on-connect>/home/my_username/bin/email_onconnect.sh</on-connect></b><b><br>
            </b><b>       
<on-disconnect>/home/my_username/bin/email_ondisconnect.sh</on-disconnect></b><br>
                    <no-yp>1</no-yp><br>
                </mount></font><br>
        </p>
        <p>After putting the new <on-connect> and
          <on-disconnect> entries into icecast.xml I reloaded the
          config with /etc/init.d/icecast2 reload and there was no error
          written to /var/log/icecast2/error.log </p>
        <p><on-connect> calls
          /home/my_username/bin/email_onconnect.sh which works from the
          command line. Likewise, <on-disconnect> calls a similar
          script which also works from the command line. I've tested
          them.<br>
        </p>
        <p>The permissions for the two scripts:</p>
        <p><font face="monospace">-rwxr-xr-x 1 my_username my_username
            352 Jul 14 07:49 email_onconnect.sh<br>
            -rwxr-xr-x 1 my_username my_username 375 Jul 14 07:49
            email_ondisconnect.sh</font></p>
        <p>I'd like to get these functions working . . . ideas?</p>
        <p>Thank you!<br>
        </p>
        <pre class="moz-signature" cols="72">-- 
Jack Elliott
Director of Classical Music Programming
KPOV 88.9 FM
High Desert Community Radio
Bend, OR</pre>
        <br>
        <fieldset class="moz-mime-attachment-header"></fieldset>
        <pre class="moz-quote-pre" wrap="">_______________________________________________
Icecast mailing list
<a class="moz-txt-link-abbreviated moz-txt-link-freetext" href="mailto:Icecast@xiph.org" moz-do-not-send="true">Icecast@xiph.org</a>
<a class="moz-txt-link-freetext" href="http://lists.xiph.org/mailman/listinfo/icecast" moz-do-not-send="true">http://lists.xiph.org/mailman/listinfo/icecast</a>
</pre>
      </blockquote>
      <br>
      <br>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Icecast mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Icecast@xiph.org">Icecast@xiph.org</a>
<a class="moz-txt-link-freetext" href="http://lists.xiph.org/mailman/listinfo/icecast">http://lists.xiph.org/mailman/listinfo/icecast</a>
</pre>
    </blockquote>
  </body>
</html>