Script (Unix)

Uses your system voice; voice and rate in settings.

Snapshot

≈ 1 min read

Names in other languages

No names in other languages are held for this entry yet.

Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.

The script command is a Unix utility that records a terminal session. It dates back to the 1979 3.0 Berkeley Software Distribution (BSD).

The script command is a Unix utility that records a terminal session. It dates back to the 1979 3.0 Berkeley Software Distribution (BSD). LOGNAME="script" rm -f $LOGNAME.p $LOGNAME.log mknod $LOGNAME.p p tee $LOGNAME.p 2>&1 The above script records to all output of the command. However, some interactive programs (such as Python) do not echo their standard input when run under the resulting shell, although they do when run under the script command, again due to the detection of a terminal. == Alternatives to script command== The ttyrec program from 2000 provides the same kind of functionality and offers several bindings. The timing is similar to util-linux. A more modern take on the concept is "asciicast" JSON, used by asciinema.

Text derived from https://en.wikipedia.org/w/index.php?oldid=1323650328 under CC BY-SA 4.0; modifications have been made.

Provenance

snapshot enwiki-001323650328 · captured 1763855988.0 · version history

Cite this page as: encyclopegia.org, “Script (Unix)”, snapshot enwiki-001323650328. https://encyclopegia.org/a/script-unix