Automation of commandline tools

I just started usinmg remote.it 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?

Thanks,

Doug

Hi Doug,

You may wish to explore oem registration methods. These are only available using the device package at present.

See:
https://link.remote.it/docs/oem-overview

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