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