To install click the Add extension button. That's it.

The source code for the WIKI 2 extension is being checked by specialists of the Mozilla Foundation, Google, and Apple. You could also do it yourself at any point in time.

4,5
Kelly Slayton
Congratulations on this excellent venture… what a great idea!
Alexander Grigorievskiy
I use WIKI 2 every day and almost forgot how the original Wikipedia looks like.
Live Statistics
English Articles
Improved in 24 Hours
Added in 24 Hours
Languages
Recent
Show all languages
What we do. Every page goes through several hundred of perfecting techniques; in live mode. Quite the same Wikipedia. Just better.
.
Leo
Newton
Brights
Milds

From Wikipedia, the free encyclopedia

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

YouTube Encyclopedic

  • 1/3
    Views:
    999 916
    29 179
    909
  • Shell Scripting Tutorial | Shell Scripting Crash Course | Linux Certification Training | Edureka
  • Add Two Numbers in Shell Script | UNIX LINUX TUTORIAL
  • UNIX Programming (Part - 58) Shell Programming (The Script Command)

Transcription

Usage

A script session is captured in file name typescript by default; to specify a different filename follow the script command with a space and the filename as such: script recorded_session.

The recorded format of script consists of plain-text timing information (for the whole session) and verbatim command output, including whatever ANSI escape code the program has printed for formatting. It uses a pseudoterminal for this purpose, so programs act exactly as if they were on a terminal.[1] The util-linux scriptreplay command offers a replay function to its script, which supports using an extra timing file for character-level information.[2][3] Some online services, such as the now-defunct shelr.tv, can also show the format as a low-bandwidth alternative to video screencasts.[4]

Problems with script command

One of the problems with the script command is that it only allows logging of a child process; and often there is a need to log the command in the current process without spawning a new process, such as when automation of a script is needed that can log its own output. The Unix operating systems make this possible by use of pipes and redirects. Consider the following model examples:

Bourne shell All shells related to Bourne shell (sh) — for example: Thompson shell (sh), Bash (bash), KornShell (ksh), Z shell (zsh) — allow the stdout and stderr to be attached to a named pipe and redirected to the tee command, for example:

LOGNAME="script"
rm -f $LOGNAME.p $LOGNAME.log
mknod $LOGNAME.p p 
tee  <$LOGNAME.p $LOGNAME.log &
exec >$LOGNAME.p 2>&1

The above script records to script.log all output of the exec 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.[5]

See also

References

  1. ^ a b script(1) – FreeBSD General Commands Manual
  2. ^ scriptreplay(1) – Linux User Manual – User Commands
  3. ^ LinuxInsight - Replaying terminal sessions with scriptreplay
  4. ^ OMG! Ubuntu! - How To Record And Share Terminal Screencasts Quickly
  5. ^ "About - asciinema".
This page was last edited on 27 January 2024, at 16:08
Basis of this page is in Wikipedia. Text is available under the CC BY-SA 3.0 Unported License. Non-text media are available under their specified licenses. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc. WIKI 2 is an independent company and has no affiliation with Wikimedia Foundation.