Skip to content

alto wait

Wait until a session's program reaches a state, or shows some text. Exits 0 then (printing what it found), 124 after --timeout, 125 if the session ends. With no id, the work pane linked to this session

In context: Scripting sessions.

Usage

Wait until a session's program reaches a state, or shows some text. Exits 0 then (printing what it found), 124 after --timeout, 125 if the session ends. With no id, the work pane linked to this session

Usage: alto wait [OPTIONS] [ID]

Arguments:
  [ID]  

Options:
      --on <DEVICE>        Work with the sessions on another device, paired with before (`alto devices`), or one of your own on Tailscale by its name there: for the session commands (ls, new, attach, send, run, wait, capture, kill, pause, resume, fetch, work). A session named `studio:3`, as `ls --all` prints it, needs no --on
      --pane <NAME>        Which work pane, when this session has several
      --until <STATE>      idle, working, needs-you, done, or prompt (the shell back at its prompt)
      --text <PATTERN>     Text to wait for in what the program prints from now on, as a regular expression (`ready on port \d+`). For what's already on the screen, `capture --screen`
      --timeout <TIMEOUT>  Give up after this long (`30`, `500ms`, `2m`)
  -h, --help               Print help

Generated from alto 0.0.1 by tools/export-reference.py.