- expect in-port patternprocedure
The function waits until the output from a process matches the pattern, a specified time period has passed, or an EOF is seen. The first argument to the function is an in-port the second argument is a Tcl glob-style string pattern.
Returns one of the following values
- ok
- eof
- timeout
- fullbuffer