Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

csh(1csh)

rlogin(1n)

sh(1sh)

tee(1)



SCRIPT(1)               COMMAND REFERENCE               SCRIPT(1)



NAME
     script - make typescript of terminal session

SYNOPSIS
     script [ -a ] [ -ec ] [ -u ] [ -8 ] [ file ... ]

DESCRIPTION
     The script command makes a typescript of everything printed
     on your terminal. The typescript (also called the log) is
     written to the files, or appended to the files if the -a
     option is given. If you don't specify a file name, the
     typescript is saved in the file typescript.

     The script command begins by executing the shell specified
     in your SHELL environment variable (/bin/sh if SHELL is not
     set).  The typescript ends when you log out of the shell.

     You can send commands directly to script by beginning a line
     with the command character (~ by default). These commands
     and their output are not put in the typescript files.
     Commands script recognizes are:

          ~l   Toggle logging off/on.
          ~^Z  Temporarily suspend script (csh only).
          ~?   Print a list of script commands.
          ~~   A single tilde.

OPTIONS
     -a Output is appended to the output files.

     -ec
        Set the command character to be the c character.

     -u Output is unbuffered to each output file which is a
        device.  This is useful for reflecting an interactive
        session to one or more slave terminals.

     -8 Use 8-bit characters.  You lose flow control with this
        option (Ctrl S and Ctrl Q) but you gain the ability to
        transfer 8-bit data.  Typically this is used when your
        terminal sends 8 bit graphical data in response to
        commands from the host.

EXAMPLES
     The following example appends the output from script to the
     file outfile.

          script  -a  outfile

     The following example changes the script command character
     to the % character. Output is put in the file named
     typescript.



Printed 4/6/89                                                  1





SCRIPT(1)               COMMAND REFERENCE               SCRIPT(1)



          script -e%

VARIABLES
     SHELL          The shell to be executed. This is usually set
                    to the value of the user's login shell."

RETURN VALUE
     [USAGE]        Incorrect command line syntax. Execution
                    terminated.

     [NP_WARN]      An error warranting a warning message
                    occurred. Execution continues.

     [NP_ERR]       An error occurred that was not a system
                    error.  Execution terminated.

     [P_ERR]        A system error occurred. Execution
                    terminated.  See intro(2) for more
                    information on system errors.

     [P_WARN]       A system error occurred. Execution continues.
                    See intro(2) for more information on system
                    errors.

CAVEATS
     The script command puts everything in the typescript files,
     including your input, prompts, all output from programs, and
     control characters.

SEE ALSO
     csh(1csh), rlogin(1n), sh(1sh), and tee(1).
























Printed 4/6/89                                                  2



%%index%%
na:288,96;
sy:384,294;
de:678,1651;
op:2329,730;
ex:3059,507;3926,22;
va:3948,228;
rv:4176,782;
ca:4958,315;
se:5273,197;
%%index%%000000000155

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