| View previous topic :: View next topic |
| Author |
Message |
Anonymous Guest
|
Posted: Mon Apr 02, 2007 5:32 pm Post subject: Ices v0.4 multiple instances with Perl playlist |
|
|
Is it possible to define the perl playlist script manually?
Currently when I run two instances of ices with perl playlist script both will execute the perl script located at /usr/local/etc/modules/ices.pm, but in the perl script its impossible to make a difference between both instances.
I need to be able to some how pass a variable to the perl script or define a different perl script for each instance of Ices.
At the moment I have two instances which both stream the exact same music  |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Wed Apr 04, 2007 4:19 pm Post subject: |
|
|
Found the solution. With -M you can define the playlist script.
For example:
/usr/local/bin/ices -c /usr/local/etc/vn.reggae.xml -M reggae
/usr/local/bin/ices -c /usr/local/etc/vn.pop.xml -M pop
First example uses the perl script /usr/local/etc/modules/reggae.pm and second example /usr/local/etc/modules/pop.pm |
|
| Back to top |
|
 |
|