Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/utilities/s/script.html on line 1

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/utilities/s/script.html on line 1

Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/utilities/s/script.html on line 8

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/utilities/s/script.html on line 8

script

Create a typescript of a terminal session

Syntax:

script [-a] [file]

Runs on:

Neutrino

Options:

-a
Append the output to file or to the typescript file, retaining the prior contents.
file
Name of the file script will use to save the session output. If you don't specify a file, output is saved in the file typescript.

Description:

The script utility records everything printed to the terminal during a session. This is useful, for example, if you want to record an interactive session and then save the typescript file for later analysis, tech support, etc.

The script ends when the forked shell exits (via Ctrl-D).


Note: Certain interactive utilities (e.g. vi) can create garbage in the typescript file. The script command works best with utilities that don't manipulate the screen; the results are meant to emulate a hardcopy terminal.

Note also that script records all transactions, including linefeeds and backspaces.


See also:

ksh (for the history feature)


Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/utilities/s/script.html on line 114

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/utilities/s/script.html on line 114