[Icecast] Usage of on-connect and on-disconnect

Pierpaolo gullˆa sviluppo at audiias.com
Wed Jan 21 00:31:02 UTC 2009


Hi guys , I ' m reading the icecast documentation , in particular here: 
http://www.icecast.org/docs/icecast-2.3.1/icecast2_config_file.html#mount

For the on-connect and on-disconnect functions , I read:

on-connect

State a program that is run when the source is started. It is passed a 
parameter which is the name of the mountpoint that is starting. The 
processing of the stream does not wait for the script to end. This 
option is not available on win32
on-disconnect

State a program that is run when the source ends. It is passed a 
parameter which is the name of the mountpoint that has ended. The 
processing of the stream does not wait for the script to end. This 
option is not available on win32


So If I write a simple script

#!/bin/bash

touch $1



And the mountpoint name it's testmount.ogg , when I connect to this 
mountoint , the script create a file called testmount.ogg ?

Or how I can take the mountpoint parameter?


Big thanks for your help

Goodbye

Pierpaolo




More information about the Icecast mailing list