Run a command on a connected tray follower.
Synopsis
ssh [--cwd <dir>] [--timeout <seconds>] <runtime-id> <command...>
Description
Runs <command> on the follower <runtime-id> (from 'host' or 'ssh --list') and returns its stdout, stderr, and exit code. Piped shell stdin is forwarded to the follower. An iOS follower accepts only 'open [--universal|--x-callback] <url>', gated through on-device scoped approval.
Options
--list, -l List exec-capable followers and exit.
--cwd <dir> Working directory on the follower.
--timeout <seconds> Kill the command on the follower after this many seconds.
--help, -h Show this help.
Examples
$ ssh --list
List followers you can run commands on.
$ R
u
$ echo hi | ssh follower-abc123 cat
Pipe stdin to a command on the follower.
$ R
u
Notes
This is the reverse direction of 'slicc <url> exec', which runs a command on a REMOTE leader instead of a follower of this tray.
See Also
slicc, host, tray