Expect 函数
目录
- 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
- expect_popen — Execute command via Bourne shell, and open the PTY stream to
the process
官方地址:https://www.php.net/manual/en/ref.expect.php