2018-10-28 12:53:06 -04:00
|
|
|
# script
|
|
|
|
|
2025-03-22 08:37:12 +02:00
|
|
|
> Record all terminal output to a typescript file.
|
2021-10-09 22:00:25 -04:00
|
|
|
> More information: <https://manned.org/script>.
|
2018-10-28 12:53:06 -04:00
|
|
|
|
2025-03-22 08:37:12 +02:00
|
|
|
- Record a new session to a file named `typescript` in the current directory:
|
2018-10-28 12:53:06 -04:00
|
|
|
|
|
|
|
`script`
|
|
|
|
|
|
|
|
- Stop recording:
|
|
|
|
|
|
|
|
`exit`
|
|
|
|
|
2025-03-22 08:37:12 +02:00
|
|
|
- Record a new session to a custom filepath:
|
2018-10-28 12:53:06 -04:00
|
|
|
|
2025-03-22 08:37:12 +02:00
|
|
|
`script {{path/to/session.out}}`
|
2018-10-28 12:53:06 -04:00
|
|
|
|
|
|
|
- Append to an existing file:
|
|
|
|
|
2025-03-22 08:37:12 +02:00
|
|
|
`script {{[-a|--append]}} {{logfile.log}}`
|
|
|
|
|
|
|
|
- Record timing information (data is outputted to `stderr`):
|
|
|
|
|
|
|
|
`script {{[-t|--timing]}} 2> {{path/to/timing_file}}`
|
|
|
|
|
|
|
|
- Write out data as soon as it happens:
|
|
|
|
|
|
|
|
`script {{[-f|--flush]}} {{path/to/file}}`
|
2018-10-28 12:53:06 -04:00
|
|
|
|
|
|
|
- Execute quietly without start and done messages:
|
|
|
|
|
2025-03-22 08:37:12 +02:00
|
|
|
`script {{[-q|--quiet]}} {{logfile.log}}`
|
2025-03-26 00:36:41 +02:00
|
|
|
|
|
|
|
- Display help:
|
|
|
|
|
|
|
|
`script {{[-h|--help]}}`
|