Kvaks wrote: > I woke up this morning and the running Squeezeslave responded nicely > when I pressed play, so this might have worked. Thanks! > > (If it turns out it didn't work, I'll come back :-) )
I spoke too soon. It didn't work. Squeezeslave kept turning up dead after not being used for a couple of hours. I sort of fixed it by making a cronjob that every hour kills and restarts squeezeslave unless it's currently playing a song. This "solution" works well enough, so I haven't bothered looking into it any further. Code: -------------------- #!/bin/bash if [ ! -z `echo -e '00%3A00%3A00%3A00%3A00%3A01 status 0 1 tags'"\nexit"|nc -w1 localhost 9090 |grep 'mode%3Aplay'` ];then echo "Squeezeslave is playing, not restarting it" else echo "Restarting squeezeslave" killall squeezeslave squeezeslave & fi -------------------- ------------------------------------------------------------------------ Kvaks's Profile: http://forums.slimdevices.com/member.php?userid=21610 View this thread: http://forums.slimdevices.com/showthread.php?t=93607 _______________________________________________ discuss mailing list discuss@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/discuss