Hi guys, I have a skill with a function I’d like executed from a script that needs to be run every minute. I have this set to be done via cron. I have a LOG statement in the function to check that the script works. The cron job runs the scripts but no LOG message appears. However if I run the script manually, I can get the LOG message. I’m stumped. Here is some information that should help.
* * * * * python3 /opt/mycroft/skills/my-skill/scripts/my-script.py
import os os.system("python3 -m mycroft.messagebus.send 'test'")
def initialize(self): self.add_event('test', self.handler_test) def handler_test(self): LOG.info("Hello!") self.speak("Hello world!")
All help is appreciated thank you!