Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

SCRIPT(1)  —  HP-UX

NAME

script − make typescript of terminal session

SYNOPSIS

script [ −a ] [ file ]

DESCRIPTION

Script makes a typescript of everything printed on your terminal.  The typescript is written to file, or appended to file if the −a option is given.  It can be sent to the line printer later with lp(1). If no file name is given, the typescript is saved in the file typescript. 

The script ends when the forked shell exits. 

This program is useful when using a crt and a hard-copy record of the dialog is desired. 

EXAMPLES

The command:

script scott

saves everything printed thereafter on the user’s screen into the file scott. 

The command:

script -a scott

appends a copy of everything printed to the user’s screen to the file scott. 

To exit script, type:

exit

WARNINGS

Note that a command such as "cat scott", which displays the contents of the destination file, should not be issued while executing script, because it would cause script to log the output of the cat(1) command to itself until all available memory is filled.  Other commands, such as more and pg, are likely to cause the same problem.

Script places everything in the log file. 

AUTHOR

Script was developed by the University of California, Berkeley. 

Hewlett-Packard Company  —  May 11, 2021

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026