script

Section: User Commands (1)
Index Return to Main Contents
 

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. You can print it later with lpr. If you don't give a filename, the typescript is saved in the file typescript.

Actually, this clone version of script just passes its options through to tee, so you can list multiple files if you want.

script runs whatever shell is in environment variable SHELL, default /bin/sh. This clone version uses pty to allocate a pseudo-terminal, so the session is listed in /etc/utmp, and lots of things work right that didn't work in the original. For example: talk(1) works; mail(1) works; you can stop and restart the shell, with control-Z in sh or suspend in csh; and so on.

The script ends when the forked shell exits. This clone version is more careful than the original to let every last bit of output appear.  

SEE ALSO

script.tidy(1)


 

Index

NAME
SYNOPSIS
DESCRIPTION
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 06:18:18 GMT, December 12, 2024