tramp-wait-for-regexp

tramp-wait-for-regexp is a compiled Lisp function in `tramp.el'.

(tramp-wait-for-regexp PROC TIMEOUT REGEXP)

Wait for a REGEXP to appear from process PROC within TIMEOUT seconds.
Expects the output of PROC to be sent to the current buffer. Returns
the string that matched, or nil. Waits indefinitely if TIMEOUT is
nil.