[Icecast] Ices with perl playlist - multiple instances
Rolf Johansson
rojo at nocrew.org
Sun Sep 12 17:49:01 UTC 2004
"James McCurrach" <james at hawkley.net> writes:
> The problem is that I can't see how to get Ices to send some form of
> parameter to the perl script so that it knows which instance is calling
> it and can then pull the right next track filename from the DB. There
> is the pidfile option in the config.xml, so that as I invoke each Ices
> instance I can capture the pid (for signalling etc) but how can I pass
> this pid or other identifier to the perl script?
As far as I know, the Perl script is started _with_ the iceS instance,
so you'll have to have one script for each iceS instance. I don't know
of any way of passing arguments from iceS to the script at run-time,
that could simplify things.
One other way is to have the "base" Perl scipt in base.pl or something,
then call ices-channel-1.pl with channel variables in that one, and
require() base.pl, and ices-channel-2.pl for another iceS channel,
and so on.
/Rolf
More information about the Icecast
mailing list