A [Mycroft.ai](https://mycroft.ai) skill to run an arbitrary shell script.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Rudis Muiznieks 11abfa67b7
Update 'README.md'
9 months ago
dialog/en-us added command to reload scripts 12 months ago
vocab/en-us added command to reload scripts 12 months ago
LICENSE Initial commit 1 year ago
README.md Update 'README.md' 9 months ago
__init__.py added command to reload scripts 12 months ago
settingsmeta.json fix variable scope 1 year ago

README.md

mycroft-run-script

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

Install

This skill isn't in the official marketplace (for now) so the best way to install it is via the command line:

mycroft-msm install https://code.sitosis.com/rudism/mycroft-run-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?