Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

<on-disconnect> and CLI options

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server
View previous topic :: View next topic  
Author Message
rec91402



Joined: 14 Nov 2009
Posts: 32

PostPosted: Sun Feb 28, 2010 1:17 am    Post subject: <on-disconnect> and CLI options Reply with quote

I am trying to use the <on-disconnect> option to send out an email when a feed disconnects... I have a bash script which works great... for that one feed...

I would rather have a generic script that I pass some vars on the CLI to specify feed and email address..

If I use:
<on-disconnect>/usr/local/etc/feeddown.sh</on-disconnect>

That works great, but I have to code in the email and feed name etc. into the script..

<on-disconnect>/usr/local/etc/feeddown.sh feedname mail@domain.invalid</on-disconnect>

That does not work, but the script which has this works fine when called direct from the CLI...

So IC2 can not pass var(s) to the script?

BASH shell on CentOS 5.4
permissions are set correct for the user and group that IC2 runs under
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Sun Feb 28, 2010 1:58 am    Post subject: Reply with quote

The script is passed the mountpoint as an argument, no other arguments are passed currently.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
subRebel style by ktauber