[mythtv-users] harmony remote and start/stop scripts

Greg G. dargllun at googlemail.com
Fri May 11 11:52:15 UTC 2012


On 11.05.2012 12:09, Mike Perkins wrote:
>> # Test to see if XMBC is running first
>> if ps -ef | grep xbmc.bin | grep -v grep

You may want to replace this expression by a simple

if pidof xbmc.bin >/dev/null; then
	killall -9 xbmc.bin
fi

This is much more efficient and robust.

-- 
Regards
greg


More information about the mythtv-users mailing list