Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ script(1) — Ultrix-11 3.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

script(1)

NAME

script − make typescript of terminal session

SYNTAX

script [ −a ] [ −n ] [ −q ] [ −s ] [ −S shell ] [ file ]

DESCRIPTION

The script command makes a typescript of everything printed on your terminal.  The typescript is saved in a file and can be sent to the line printer using the lpr command.  If file is given, the typescript is saved there.  If not, the typescript is saved in the file “typescript” in the current directory. 

To exit script, type <CTRL/D>.  This sends an end of file to all processes started up, and causes script to exit.  For this reason, <CTRL/D> behaves as though an infinite number had been typed. 

This program is useful when using a crt and a hard-copy record of the dialogue is desired, as for a student handing in a program that was developed on a crt when hard-copy terminals are in short supply. 

OPTIONS

−a Append to the typescript file instead of creating a new file. 

−n Use the “new” shell (interpretation of “new” is installation dependent). 

−q Suppress the “script started” and “script done” messages. 

−s Use the “standard” shell, usually sh(1). 

−Sshell
Use shell.  If the requested shell is not available, script uses any shell it can find. 

RESTRICTIONS

Since UNIX has no way to write an end-of-file down a pipe without closing the pipe, there is no way to simulate a single <CTRL/D> without ending script. 

The new shell has its standard input coming from a pipe rather than a tty, so stty(1) will not work. 

When the user interrupts a printing process, script attempts to flush the output backed up in the pipe for better response.  Usually the next prompt also gets flushed. 

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