SHELL RUNNER
a simple and practical interface for the norns to list and execute any shell script located in its “scripts” directory directly from the norns.
scripts can be for bash, python 2.7, lua, or anything else that is stock on the norns.
motivation
I always find it troublesome when i want to sit down with hardware and just work on a new thing without losing whatever I was previously working on. so I’ve started writing shell scripts to do backups quickly without disconnecting gear and involving a laptop. I needed a way to do this directly from the norns and this is a straightforward way of doing this. maybe others will find it useful/convenient.
Requirements
norns
Documentation
if you have a script you want to be executable from the norns, throw it into ~/dust/code/shell_runner/scripts/ and it should show in the list.
if you have a nice shell script you think others will find useful, feel free to submit a PR.
three scripts are included by default:
- backup tape data (with option to upload to the cloud)
- backup a connected OP-Z (when OP-Z is in disk mode)
- clear all of shell runner’s data (hopefully after you have grabbed the data off of the norns)
all the backup data from those scripts is copied to ~/dust/data/shell_runner/
note that files are moved from the tape directory to the ~/dust/data/shell_runner/ directory
make sure to check that your data was uploaded or that you have downloaded your data from the norns BEFORE using the clear data script. that script REMOVES the backup from the norns
automatically uploading to the cloud with rclone
for my own uses, I also enable the scripts to upload directly from the norns to cloud storage. to enable this:
-
install rclone onto your norns by ssh’ing into the norns and using these instructions: https://rclone.org/install/
-
setup a cloud drive and call it “drive” within rclone.
-
uncomment the last line in the two included backup scripts.
this will backup your tape directory and/or your OP-Z and immediately upload it to Google Drive, Dropbox, Amazon S3, or any of the supported cloud providers from rclone.
Download
v1.0.2 - https://github.com/scazan/shell_runner/archive/1.0.2.zip
https://github.com/scazan/shell_runner