Talk to another SLICC leader as a client.
Synopsis
slicc <target> <prompt|exec|watch> [options] [args...]
Description
Attaches to a remote SLICC leader via a join URL and either sends it a chat prompt, runs a command in its virtual shell, or passively tails its output. A join URL is dialed once and kept warm, so repeated commands against the same leader reuse one connection. This is the reverse of ssh: ssh runs a command on a follower of THIS tray, while 'slicc <url> exec' runs one in a REMOTE leader's shell.
Options
prompt [--steer] <text...> Send one chat turn; streams the remote agent's reply to stdout.
exec [--cwd <dir>] <command...> Run a command in the remote leader's virtual shell.
watch [--for <s>] [--until-idle] [<scoop-jid>] Passively tail the remote agent's output (read-only).
list List current attachments.
detach <name> | --all Detach from one or all remote leaders.
--name <name> Name the attachment (default: slicc-<n>).
--once Detach as soon as the verb finishes.
--timeout <seconds> Give up on the verb after this long.
--steer prompt: interrupt the remote's running turn instead of queuing.
--cwd <dir> exec: working directory on the remote leader.
--for <seconds> watch: how long to tail (default 30).
--until-idle watch: stop early once a turn finishes.
Examples
$ R
u
$ S
e
$ git log -5 | slicc lab prompt @-
Pipe local output into a prompt sent to a named attachment.
$ slicc list
List current attachments.
Notes
Text arguments are curl-style: literal text, @path to read a VFS file, or - / @- to read piped stdin. <target> can be a join URL or the name of an existing attachment from 'slicc list'.
See Also
ssh, agent, host