[icecast] how to modify ices source?

Robin P. Blanchard
2004-08-06T14:22:32Z

> assuming otto can execute an arbitrary shell command whenever the
> track plays (I assume it can call whatever mp3 decoder you want), you
> can
> a) have a script that does something like
> echo $1 > /path/to/playlist.txt
> Then ices will reload the playlist file (size: one entry) at the end
> of the track.
>
> b) do
> mkfifo ices.fifo
> echo ices.fifo > playlist.txt
> run ices,
> and have otto do
> cat $1 > ices.fifo
> instead of calling its mp3 decoder.

*otto*'s (not ices) :) problem is that the playlist is dynamic and is
written after a track is played. while a track is playing you users
can submit/delete requests or it's little daemon will randomly select
things.
once a track is completed the top entry of that dynamic playlist is written
as a file. otto only knows when a track has finished playing by it's spawned
app (in this case, ices) exiting. hence all of this debate.

believe me, i am working with it's maintainer on cleaning up his code. in
the
meantime, i would like to know the optimal way to force ices to exit, per-track.


--
------------------------------------
Robin P. Blanchard
IT Program Specialist
Georgia Center for Continuing Ed.
fon: 706.542.2404 fax: 706.542.6546
email: Robin_Blanchard@gactr.uga.edu
------------------------------------