Linux command
scriptlive 命令
网络
复制后可按需替换文件名、目录或参数。
常用示例
Example
scriptlive path/to/timing_file path/to/typescript
Example
scriptlive path/to/timing_file path/to/typescript --divisor 2
Example
scriptlive --log-in path/to/stdin_log path/to/typescript
Example
scriptlive path/to/timing_file path/to/typescript --maxdelay 2
说明
scriptlive re-executes a terminal session that was previously recorded by the script command. Unlike scriptreplay which only displays recorded output passively, scriptlive actually runs the commands in a live shell, reproducing the session's actions with their real effects. The tool uses timing data to pace command execution, matching the original session's rhythm. Speed can be adjusted with the --divisor option for faster or slower execution, and --maxdelay caps the wait between commands to skip long pauses. This is useful for automated demonstrations, reproducing test scenarios, and recreating specific terminal workflows.
参数
- --divisor _n_
- Speed multiplier (2 = double speed)
- --log-in _file_
- Use stdin log file for input
- --maxdelay _seconds_
- Maximum wait between commands
FAQ
What is the scriptlive command used for?
scriptlive re-executes a terminal session that was previously recorded by the script command. Unlike scriptreplay which only displays recorded output passively, scriptlive actually runs the commands in a live shell, reproducing the session's actions with their real effects. The tool uses timing data to pace command execution, matching the original session's rhythm. Speed can be adjusted with the --divisor option for faster or slower execution, and --maxdelay caps the wait between commands to skip long pauses. This is useful for automated demonstrations, reproducing test scenarios, and recreating specific terminal workflows.
How do I run a basic scriptlive example?
Run `scriptlive path/to/timing_file path/to/typescript` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --divisor _n_ do in scriptlive?
Speed multiplier (2 = double speed)