Options (5)
-a, --appendbooleanAppend to an existing file
Example:
script {{[-a|--append]}} {{logfile.log}}-t, --timingbooleanRecord timing information (data is outputted to `stderr`)
Example:
script {{[-t|--timing]}} 2> {{path/to/timing_file}}-f, --flushbooleanWrite out data as soon as it happens
Example:
script {{[-f|--flush]}} {{path/to/file}}-q, --quietbooleanExecute quietly without start and done messages
Example:
script {{[-q|--quiet]}} {{logfile.log}}-h, --helpbooleanDisplay help
Example:
script {{[-h|--help]}}Examples (8)
Record a new session to a file named `typescript` in the current directory
Stop recording
Record a new session to a custom filepath
script path/to/session.outAppend to an existing file
script [-a|--append] logfile.logRecord timing information (data is outputted to `stderr`)
script [-t|--timing] 2> path/to/timing_fileWrite out data as soon as it happens
script [-f|--flush] path/to/fileExecute quietly without start and done messages
script [-q|--quiet] logfile.logDisplay help
script [-h|--help]made by @shridhargupta | data from tldr-pages