Le mercredi 9 septembre 2009 19:59:01, Nathan Huebner a écrit : > Ok so I have put the dynamic request in, and it points to a file.. ( a > script )...
Hmm.. This file has to be an executable script.. > But I put in the script the MP3 to play, and this was spammed > so much that it kicked me out of SSH lol: > > /home/nocturnal/track.txt: line 1: > /home/nocturnal/tunes/_TODAY/10.today.mp3: cannot execute binary file > > > Your site examples are great, but none actually show the script I use, and > how It should respond to my LIQ file to be a valid response. What do I > name my script file? What do I put in it? Do I need to do a "Single", and > echo back something? Can you help. Well the script should be some sort of program of your own, all liquidsoap requires is that it writes to its standard output the name of the next song to queue. Then you can put all the details you need on this script. The dummy example to start with could be: 8<------------------------------------------>8 #/bin/sh # Dummy script that always returns the same song... echo "/home/nocturnal/tunes/_TODAY/10.today.mp3" 8<------------------------------------------>8 You save this content to a file, say /tmp/test.sh and then do: chmod +x /tmp/test.sh which will make it executable. Then on the previous code example I gave you, you replace "/path/to/script" by "/tmp/test.sh". However, this is a stupid script, in order to have the scheduling you need you will need to write your custom script that returns exactly the song you want to play. The advantage of this method is that you are free to use whatever language you feel comfortable with, and you will not have to cope with the details about playlists in liquidsoap. Hope this helps.. Romain ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Savonet-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/savonet-users
