I’m looking to find a way of running a terminal command via shortcuts.
How is best to achieve this and run via shortcuts. I’m imagining I need to put the command into a script and execute via SSH in shortcuts. Any guidance would be appreciated.
For info it’s just a single line from the following:
I would copy (and/or adapt) the contents of this repo into scriptable and follow the examples for setting what ever interactions you were looking for. You could then either call the scriptable script directly or through shortcuts
I’ll attempt the scriptable route as that seems the most native option to run it directly from any iOS device. ay be a little tricky for me but keen to learn.
As do I. I tend to write and store my scripts on the servers, and then run the scripts from shortcuts via SSH passing in script parameters to control the activity. But I do invariably cd to a script directory first.
On your computer try running which sky-remote-cli and see what turns up. It’s possible that nom package is not installed globally and so it doesn’t find it when looking in (usually) /usr/bin
Edit: you can also try using the full path to run it