{
    "content": [
        {
            "type": "text",
            "text": "# scriptreplay(1) (man)\n\n**Summary:** scriptreplay - play back typescripts, using timing information\n\n**Synopsis:** scriptreplay [options] [-t] timingfile [typescript [divisor]]\n\n## Flags\n\n| Flag | Long | Arg | Description |\n|------|------|-----|-------------|\n| -I | --log-in | — | File containing script's terminal input. |\n| -O | --log-out | — | File containing script's terminal output. |\n| -B | --log-io | — | File containing script's terminal output and input. |\n| -t | --timing | — | File containing script's timing output. This option overrides old-style arguments. |\n| -T | --log-timing | — | This is an alias for -t, maintained for compatibility with script(1) command-line options. |\n| -s | --typescript | — | File containing script's terminal output. Deprecated alias to --log-out. This option overrides old-style arguments. |\n| -c | --cr-mode | — | Specifies how to use the CR (0x0D, carriage return) character from log files. The default mode is auto, in this case CR  |\n| -d | --divisor | — | Speed up the replay displaying this number of times. The argument is a floating-point number. It’s called divisor becaus |\n| -m | --maxdelay | — | Set the maximum delay between updates to number of seconds. The argument is a floating-point number. This can be used to |\n| — | --summary | — | Display details about the session recorded in the specified timing file and exit. The session has to be recorded using a |\n| -x | --stream | — | Forces scriptreplay to print only the specified stream. The supported stream types are in, out, signal, or info. This op |\n| -V | --version | — | Display version information and exit. |\n| -h | --help | — | Display help text and exit. |\n\n## Examples\n\n- `% script --log-timing file.tm --log-out script.out`\n- `Script started, file is script.out`\n- `% ls`\n- `<etc, etc>`\n- `% exit`\n- `Script done, file is script.out`\n- `% scriptreplay --log-timing file.tm --log-out script.out`\n\n## See Also\n\n- script(1)\n- scriptlive(1)\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (2 lines)\n- **DESCRIPTION** (18 lines)\n- **OPTIONS** (1 lines) — 13 subsections\n  - -I --log-in (2 lines)\n  - -O --log-out (2 lines)\n  - -B --log-io (2 lines)\n  - -t --timing (2 lines)\n  - -T --log-timing (3 lines)\n  - -s --typescript (3 lines)\n  - -c --cr-mode (5 lines)\n  - -d --divisor (4 lines)\n  - -m --maxdelay (3 lines)\n  - --summary (4 lines)\n  - -x --stream (4 lines)\n  - -V --version (2 lines)\n  - -h --help (2 lines)\n- **EXAMPLES** (8 lines)\n- **AUTHORS** (3 lines)\n- **COPYRIGHT** (9 lines)\n- **SEE ALSO** (2 lines)\n- **REPORTING BUGS** (2 lines)\n- **AVAILABILITY** (6 lines)\n\n## Full Content\n\n### NAME\n\nscriptreplay - play back typescripts, using timing information\n\n### SYNOPSIS\n\nscriptreplay [options] [-t] timingfile [typescript [divisor]]\n\n### DESCRIPTION\n\nThis program replays a typescript, using timing information to ensure that output happens in\nthe same rhythm as it originally appeared when the script was recorded.\n\nThe replay simply displays the information again; the programs that were run when the\ntypescript was being recorded are not run again. Since the same information is simply being\ndisplayed, scriptreplay is only guaranteed to work properly if run on the same type of\nterminal the typescript was recorded on. Otherwise, any escape characters in the typescript\nmay be interpreted differently by the terminal to which scriptreplay is sending its output.\n\nThe timing information is what script(1) outputs to file specified by --log-timing.\n\nBy default, the typescript to display is assumed to be named typescript, but other filenames\nmay be specified, as the second parameter or with option --log-out.\n\nIf the third parameter or --divisor is specified, it is used as a speed-up multiplier. For\nexample, a speed-up of 2 makes scriptreplay go twice as fast, and a speed-up of 0.1 makes it\ngo ten times slower than the original session.\n\n### OPTIONS\n\n#### -I --log-in\n\nFile containing script's terminal input.\n\n#### -O --log-out\n\nFile containing script's terminal output.\n\n#### -B --log-io\n\nFile containing script's terminal output and input.\n\n#### -t --timing\n\nFile containing script's timing output. This option overrides old-style arguments.\n\n#### -T --log-timing\n\nThis is an alias for -t, maintained for compatibility with script(1) command-line\noptions.\n\n#### -s --typescript\n\nFile containing script's terminal output. Deprecated alias to --log-out. This option\noverrides old-style arguments.\n\n#### -c --cr-mode\n\nSpecifies how to use the CR (0x0D, carriage return) character from log files. The default\nmode is auto, in this case CR is replaced with line break for stdin log, because\notherwise scriptreplay would overwrite the same line. The other modes are never and\nalways.\n\n#### -d --divisor\n\nSpeed up the replay displaying this number of times. The argument is a floating-point\nnumber. It’s called divisor because it divides the timings by this factor. This option\noverrides old-style arguments.\n\n#### -m --maxdelay\n\nSet the maximum delay between updates to number of seconds. The argument is a\nfloating-point number. This can be used to avoid long pauses in the typescript replay.\n\n#### --summary\n\nDisplay details about the session recorded in the specified timing file and exit. The\nsession has to be recorded using advanced format (see script(1)) option --logging-format\nfor more details).\n\n#### -x --stream\n\nForces scriptreplay to print only the specified stream. The supported stream types are\nin, out, signal, or info. This option is recommended for multi-stream logs (e.g.,\n--log-io) in order to print only specified data.\n\n#### -V --version\n\nDisplay version information and exit.\n\n#### -h --help\n\nDisplay help text and exit.\n\n### EXAMPLES\n\n% script --log-timing file.tm --log-out script.out\nScript started, file is script.out\n% ls\n<etc, etc>\n% exit\nScript done, file is script.out\n% scriptreplay --log-timing file.tm --log-out script.out\n\n### AUTHORS\n\nThe original scriptreplay program was written by Joey Hess <joey@kitenet.net>. The program\nwas re-written in C by James Youngman <jay@gnu.org> and Karel Zak <kzak@redhat.com>\n\n### COPYRIGHT\n\nCopyright © 2008 James Youngman\n\nCopyright © 2008-2019 Karel Zak\n\nThis is free software; see the source for copying conditions. There is NO warranty; not even\nfor MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\nReleased under the GNU General Public License version 2 or later.\n\n### SEE ALSO\n\nscript(1), scriptlive(1)\n\n### REPORTING BUGS\n\nFor bug reports, use the issue tracker at https://github.com/karelzak/util-linux/issues.\n\n### AVAILABILITY\n\nThe scriptreplay command is part of the util-linux package which can be downloaded from Linux\nKernel Archive <https://www.kernel.org/pub/linux/utils/util-linux/>.\n\n\n\nutil-linux 2.37.2                            2021-07-20                              SCRIPTREPLAY(1)\n\n"
        }
    ],
    "structuredContent": {
        "command": "scriptreplay",
        "section": "1",
        "mode": "man",
        "summary": "scriptreplay - play back typescripts, using timing information",
        "synopsis": "scriptreplay [options] [-t] timingfile [typescript [divisor]]",
        "flags": [
            {
                "flag": "-I",
                "long": "--log-in",
                "arg": null,
                "description": "File containing script's terminal input."
            },
            {
                "flag": "-O",
                "long": "--log-out",
                "arg": null,
                "description": "File containing script's terminal output."
            },
            {
                "flag": "-B",
                "long": "--log-io",
                "arg": null,
                "description": "File containing script's terminal output and input."
            },
            {
                "flag": "-t",
                "long": "--timing",
                "arg": null,
                "description": "File containing script's timing output. This option overrides old-style arguments."
            },
            {
                "flag": "-T",
                "long": "--log-timing",
                "arg": null,
                "description": "This is an alias for -t, maintained for compatibility with script(1) command-line options."
            },
            {
                "flag": "-s",
                "long": "--typescript",
                "arg": null,
                "description": "File containing script's terminal output. Deprecated alias to --log-out. This option overrides old-style arguments."
            },
            {
                "flag": "-c",
                "long": "--cr-mode",
                "arg": null,
                "description": "Specifies how to use the CR (0x0D, carriage return) character from log files. The default mode is auto, in this case CR is replaced with line break for stdin log, because otherwise scriptreplay would overwrite the same line. The other modes are never and always."
            },
            {
                "flag": "-d",
                "long": "--divisor",
                "arg": null,
                "description": "Speed up the replay displaying this number of times. The argument is a floating-point number. It’s called divisor because it divides the timings by this factor. This option overrides old-style arguments."
            },
            {
                "flag": "-m",
                "long": "--maxdelay",
                "arg": null,
                "description": "Set the maximum delay between updates to number of seconds. The argument is a floating-point number. This can be used to avoid long pauses in the typescript replay."
            },
            {
                "flag": "",
                "long": "--summary",
                "arg": null,
                "description": "Display details about the session recorded in the specified timing file and exit. The session has to be recorded using advanced format (see script(1)) option --logging-format for more details)."
            },
            {
                "flag": "-x",
                "long": "--stream",
                "arg": null,
                "description": "Forces scriptreplay to print only the specified stream. The supported stream types are in, out, signal, or info. This option is recommended for multi-stream logs (e.g., --log-io) in order to print only specified data."
            },
            {
                "flag": "-V",
                "long": "--version",
                "arg": null,
                "description": "Display version information and exit."
            },
            {
                "flag": "-h",
                "long": "--help",
                "arg": null,
                "description": "Display help text and exit."
            }
        ],
        "examples": [
            "% script --log-timing file.tm --log-out script.out",
            "Script started, file is script.out",
            "% ls",
            "<etc, etc>",
            "% exit",
            "Script done, file is script.out",
            "% scriptreplay --log-timing file.tm --log-out script.out"
        ],
        "see_also": [
            {
                "name": "script",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/script/1/json"
            },
            {
                "name": "scriptlive",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/scriptlive/1/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 18,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "-I --log-in",
                        "lines": 2,
                        "flag": "-I",
                        "long": "--log-in"
                    },
                    {
                        "name": "-O --log-out",
                        "lines": 2,
                        "flag": "-O",
                        "long": "--log-out"
                    },
                    {
                        "name": "-B --log-io",
                        "lines": 2,
                        "flag": "-B",
                        "long": "--log-io"
                    },
                    {
                        "name": "-t --timing",
                        "lines": 2,
                        "flag": "-t",
                        "long": "--timing"
                    },
                    {
                        "name": "-T --log-timing",
                        "lines": 3,
                        "flag": "-T",
                        "long": "--log-timing"
                    },
                    {
                        "name": "-s --typescript",
                        "lines": 3,
                        "flag": "-s",
                        "long": "--typescript"
                    },
                    {
                        "name": "-c --cr-mode",
                        "lines": 5,
                        "flag": "-c",
                        "long": "--cr-mode"
                    },
                    {
                        "name": "-d --divisor",
                        "lines": 4,
                        "flag": "-d",
                        "long": "--divisor"
                    },
                    {
                        "name": "-m --maxdelay",
                        "lines": 3,
                        "flag": "-m",
                        "long": "--maxdelay"
                    },
                    {
                        "name": "--summary",
                        "lines": 4,
                        "long": "--summary"
                    },
                    {
                        "name": "-x --stream",
                        "lines": 4,
                        "flag": "-x",
                        "long": "--stream"
                    },
                    {
                        "name": "-V --version",
                        "lines": 2,
                        "flag": "-V",
                        "long": "--version"
                    },
                    {
                        "name": "-h --help",
                        "lines": 2,
                        "flag": "-h",
                        "long": "--help"
                    }
                ]
            },
            {
                "name": "EXAMPLES",
                "lines": 8,
                "subsections": []
            },
            {
                "name": "AUTHORS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "COPYRIGHT",
                "lines": 9,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "REPORTING BUGS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "AVAILABILITY",
                "lines": 6,
                "subsections": []
            }
        ]
    }
}