Skip to main content
U.S. flag

An official website of the United States government

Official websites use .gov
A .gov website belongs to an official government organization in the United States.

Secure .gov websites use HTTPS
A lock ( ) or https:// means you’ve safely connected to the .gov website. Share sensitive information only on official, secure websites.

Expect - A Power Tool for Systems Administration Automation

Published

Author(s)

Don E. Libes

Abstract

UNIX system administration often involves programs designed only for interactive use. Many^M such programs (passwd, su, etc.) cannot be placed into shell scripts. Some programs (fsck,dump, etc.) Are not specifically interactive, but have poor support for automated use. Expect is a program which can talk to interactive programs. A script is used to guide the dialogue. Scripts are written in a high-level language and provide flexibility for arbitrarily complex dialogues. By writing an Expect script, one can run interactive programs Shell scripts are incapable of managing these systems administration tasks, but Expect scripts can control them and many others. Tasks requiring a person dedicated to interactively responding to badly written programs can be automated. In a large environment, the time and aggravation saved is immense.
Citation
System Administration Tools by D. McNutt
Publisher Info
O'Reilly & Associates,

Keywords

dialogue, Expect, fsck, interaction, passwd, password, programmed, security, shell

Citation

Libes, D. (1995), Expect - A Power Tool for Systems Administration Automation, O'Reilly & Associates, (Accessed March 28, 2024)
Created August 1, 1995, Updated February 17, 2017