system
Introduction
Process Control Extensions
PHP Manual

# Expect

- Introduction
- Installing/Configuring
  - Requirements
  - Installation
  - Runtime Configuration
  - Resource Types
- Predefined Constants
- Examples
  - Expect Usage Examples
- Expect Functions
  - 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

system
Introduction
Process Control Extensions
PHP Manual