Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ script(1) — UTek W2.3

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
     Script 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 filename, the typescript is
     saved in the file typescript.

     Script 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 (cntl-S and cntrl-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 10/17/86                                                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
     Script 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), tee(1).























Printed 10/17/86                                                2





































































%%index%%
na:72,80;
sy:152,206;
de:358,1351;
op:1709,672;
ex:2381,423;2948,23;
va:2971,191;
rv:3162,738;
ca:3900,251;
se:4151,164;
%%index%%000000000154

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