A [Mycroft.ai](https://mycroft.ai) skill to run an arbitrary shell script.
Go to file
Rudis Muiznieks 5b99d2defa
added command to reload scripts
2022-04-01 16:35:03 -05:00
dialog/en-us added command to reload scripts 2022-04-01 16:35:03 -05:00
vocab/en-us added command to reload scripts 2022-04-01 16:35:03 -05:00
LICENSE Initial commit 2022-02-08 18:40:22 +00:00
README.md updated readme 2022-02-08 16:37:13 -06:00
__init__.py added command to reload scripts 2022-04-01 16:35:03 -05:00
settingsmeta.json fix variable scope 2022-02-08 15:22:26 -06:00

README.md

mycroft-run-script

A Mycroft.ai skill to run an arbitrary shell script.

Setup

After installing the skill configure the script_dir either in the settings json or on Mycroft Home. Default is /home/mycroft/scripts.

Place your executable scripts or programs in that directory with the name you want to call them. Replace spaces with dashes.

Usage Examples

Hey Mycroft, run the backup script.

This will execute the script /home/mycroft/scripts/backup if it exists.

Hey Mycroft, execute total wipe program.

This will execute the script /home/mycroft/total-wipe if it exists.

Todo

  • Check if script is still running or not
  • Check if script exited with succes or failure
  • Track multiple scripts simultaneously
  • Save script output with ability to read it back later?