Skip to content

LocalShell.WaitFor

Name Mandatory Description Default Type
⬅️ Input The input of the shard, if any None
Output ➡️ The resulting output of the shard String
Session No Local shell session object none LocalShell.SessionVar(LocalShell.Session)
Pattern No Regular expression to wait for in the output none StringVar(String)
Timeout No Timeout in milliseconds, 0 = wait indefinitely (default: 30000) 30000 IntVar(Int)
StripAnsi No Strip ANSI escape sequences before matching (default: true) true BoolVar(Bool)

Wait until the session output matches a regular expression, returning the matched text (errors on timeout)