I think this approach is clearer, and easier to programme!
[image: http://www.cjh.me.uk/MyPhotobucket/cache/DIYHifi/Jivelite/jivelite0008_512.jpg] For the external interface I'd like a menu that allows me to pick the device, pCP-style. My bash script can return a list: Code: -------------------- root@openframe:~/jivelite/bin# j4j_squeezelite.sh list USB sysdefault:CARD=DragonFly front:CARD=DragonFly,DEV=0 surround21:CARD=DragonFly,DEV=0 surround40:CARD=DragonFly,DEV=0 surround41:CARD=DragonFly,DEV=0 surround50:CARD=DragonFly,DEV=0 surround51:CARD=DragonFly,DEV=0 surround71:CARD=DragonFly,DEV=0 iec958:CARD=DragonFly,DEV=0 dmix:CARD=DragonFly,DEV=0 dsnoop:CARD=DragonFly,DEV=0 hw:CARD=DragonFly,DEV=0 plughw:CARD=DragonFly,DEV=0 -------------------- But I understand that a bash script can only return a single value to the applet, not a list. So what's the best way to get this list back into the applet code, and then make a menu item for each line? ------------------------------------------------------------------------ chill's Profile: http://forums.slimdevices.com/member.php?userid=10839 View this thread: http://forums.slimdevices.com/showthread.php?t=110040 _______________________________________________ unix mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/unix
