Recording and Playing Back dbx Input and Output
31
review the output file using any IRIX system text viewing command (such
as vi(1)).
For example, to record the dbx output in a file called gaffa, enter:
(dbx) record output gaffa
To record both the commands and the output, enter:
(dbx) set $rimode=1
(dbx) record output gaffa
If you omit the filename, dbx saves the recorded output in a temporary file in
/tmp. The temporary file is deleted at the end of the dbx session. To save
output for use after the dbx session, you must specify the filename when
giving the record output command. The name of the temporary file is stored
in the dbx variable $defaultout.
To display the temporary filename, type:
(dbx) print $defaultout
Playing Back Output
The playback output command displays output saved with the record output
command. This command works the same as the cat(1) command. If you
don’t specify a filename, dbx uses the current temporary file created for the
record output command.
For example, to display the output stored in the file script, enter:
(dbx) playback output script
Examining the Record State
The record command displays all record input and record output sessions
currently active. For example:
(dbx) record
[4] record input /usr/demo/script (12 lines)
[5] record output /tmp/dbxoXa17992 (5 lines)
Comments to this Manuals