Skip to content

Can I run snippets on a server within Blink? #1549

Discussion options

You must be logged in to vote

You can easily run snippets on remote servers using the Blink' shell capabilities.

ssh 'bash -s' < test.sh

To create a snippet, make sure to use our Code integration. Because this is a Shell script, it can be as complex as you need it, and not limited to a single line. Ie. create a test.sh file:

#!/bin/bash
echo "CURRENT TIME = "`date`
echo "HOSTNAME = "`hostname`
echo "USER id = "`whoami`
echo "IP ADDRESS = "`ip a s enp0s3 | grep "inet " | cut -f6 -d" "`

If you store your snippets inside the iCloud folder, they will be automatically synchronized between your devices.

You can also call snippets from Shortcuts by leveraging URL callbacks.

At the moment, we do not offer any specialized UI …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by carloscabanero
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant