On 2008-02-12, sunway <[EMAIL PROTECTED]> wrote: > I have noticed that after 13 times calling of "echo ..|nc localhost > 6600" in get_mpd_status(), `ps aux|grep nc` shows that "sh -c echo ..|nc > localhost 6600" > sleeping forever, so I use "mpc" instead of "echo|nc" to get mpd info, it > seems work quite well
One should just use luasocket, to avoid executing programs all the time. And ioncore.popen_bgread instead io.popen stops one monitor listening to a hung program from hanging the whole statusd. Of course, I also recommend moc(p), which doesn't demand a bloated redundant playlist library, but provides good support for your existing filing system -- the directory hierarchy. -- Tuomo
