Hi Solvik,

Enjoying your holidays ? :p

I don't have any idea of what might be wrong with your script. As
usual, I recommend trying to trace more precisely what's going on, by
adding logging and tracing alive and dead requests from the server.
But I also did my own experiment to check that something wasn't
obviously broken. Maybe you can check if it runs fine for you too.

$ liquidsoap 
'output.dummy(fallible=true,request.dynamic({request.create(get_process_output("test
-f /tmp/foo && ls ~/media/audio/jazz/*mp3 | sort -R | head -n 1"))}))'

First, it's the latest SVN. At least you need a quite recent one to
get the fallible dummy output.

So it's just a dynamic request queue and an output. The script called
is a simple shell expression:
  test -f /tmp/foo && ls <dir> | sort -R | head -n 1

The second part is just for picking a random file. The first part is
for making the command fail at first (I wanted to check that the queue
runs even if it's not fed initially). The protocol for starting the
feeding is to "touch /tmp/foo" of course. Liquidsoap behaved as
expected on this example.

HTH
-- 
David

------------------------------------------------------------------------------
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to