script (Unix)

from Wikipedia, the free encyclopedia

script is a command line program on Unix and Unix-like operating systems , which all inputs and outputs of a terminal records in a file.

use

The program is used in the Unix shell as follows:

$ script [Datei]

Further options are possible.

Depending on the Unix shell used, the program and the recording can be ended with Strg+ Dor Strg+ C. The entire input / output is then available for further processing in the file specified with the file parameter .

functionality

After starting, script generates a pseudo-terminal and ensures that all further inputs and outputs are written to a file and the outputs are also output on the original terminal, and then calls a shell with the newly created pseudo-terminal. After exiting this shell, script also terminates and the recording is ended.

The inputs and outputs are recorded unfiltered, so that control characters such as backspace or the repositioning of the terminal cursor are recorded as bytes.

swell