e01.org

Script (Unix)

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.

source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"Script (Unix)". 1763855988. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1323650328

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·