|
expect_expectl
Waits until the output from a process matches one
of the patterns, a specified time period has passed, or an EOF is seen
(PECL expect:0.1-0.2.2)
Waits until the output from a process matches one of the patterns, a specified time period has passed, or an EOF is seen. If match is provided, then it is filled with the result of search. The matched string can be found in match[0]. The match substrings (according to the parentheses) in the original pattern can be found in match[1], match[2], and so on, up to match[9] (the limitation of libexpect). Parameters
Return ValuesReturns value associated with the pattern that was matched.
On failure this function returns:
ChangeLog
ExamplesExample 604. expect_expectl() example<?php
See Also
|