system
Введение
Process Control Extensions
PHP Manual

# Expect

- Введение
- Установка и настройка
  - Установка
  - Настройка во время выполнения
  - Типы ресурсов
- Предопределенные константы
- Примеры
- 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

system
Введение
Process Control Extensions
PHP Manual