Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ script(1) — Reliant UNIX 5.44c4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

script(1)                                                         script(1)

NAME
     script - make a typescript of a terminal session

SYNOPSIS
     script[ -a][ filename]

DESCRIPTION
     script makes a typescript (i.e. a log file) of everything that is
     displayed on your terminal during a session. script ends when the
     forked shell exits or when you press <CTRL-D>.

     -a   The typescript is appended to the contents of filename.

          -a not specified:

          A new typescript file is created.

     filename
          Log file in which the typescript is recorded.

          file not specified:

          The typescript is recorded in the file typescript.

EXAMPLES
     $ script logfile
     Script started, file is logfile
     $ cat >prog.c
     main()
     {
        printf("Good Morning!\n")
     }
     <CTRL-D>
     $ cc prog.c
     c1:
     prog.c    4: [syntax]:   ';' expected
     c1: errors: 1, warnings: 0
     $ <CTRL-D> Script done, file is logfile
     $

     script creates a file named logfile in the current directory. The
     first time you press <CTRL-D>, you are simply terminating the input
     for cat; the second <CTRL-D> terminates the typescript. logfile will
     then contain the following:











Page 1                       Reliant UNIX 5.44                Printed 11/98

script(1)                                                         script(1)

     Script started on Thu Sep 6 11:57:51 1990
     $ cat >prog.c
     main()
     {
        printf("Good Morning!\n")
     }

     $ cc prog.c
     c1:
     prog.c    4: [syntax]:   ';' expected
     c1: errors: 1, warnings: 0
     $
     script done on Thu Sep 6 11:58:43 1990









































Page 2                       Reliant UNIX 5.44                Printed 11/98

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