I\'ve got a basic script used to detect motion as that is registered by a PIR sensor hooked on a Rasberry PI. The script works fine when running as user \'pi\' and as root,