Community Forum

Automation of commandline tools

I just started usinmg and so far I’m really liking it. However, I would really like to be able to write some srcipts to be able to automate the process to insure consistent setups across multiple devices.

Specifically, I’d like to be able to redirect or pass input to:

remoteit add

to add services
I’ve tried (from an elevated shell)

remoteit add ssh 22 ssh

echo “ssh\n22\nssh\n” | remoteit add

named pipes:
mkfifo in
printf "%b " ‘ssh\n22\nssh1\n’ >in &
sudo sh -c ‘remoteit add <in’

and a bunch of of other variations. Is there anyway to do what I’d like?



Hi Doug,

You may wish to explore “auto” or “bulk” registration methods. These are only available using the connectd package at present.


Take a look at this script, it does something similar: