PHPTS:一键免费搭建 Nginx + PHP + MySQL 运行环境

Expect 函数

Table of Contents

  • 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