User`s guide
10
Chapter 2: Running dbx
rerun [run-arguments]
The rerun command, without any arguments, repeats the
last run command if applicable. Otherwise rerun is
equivalent to the run command without any arguments.
The sort command takes an input file and produces a sorted output file; you
can specify input and output files either through command-line arguments
or file redirection.
For example, from the command line you can enter:
% sort -i input -o output
% sort < input2 > output2
If you are debugging the sort program, the equivalent dbx commands are:
(dbx) run -i input -o output
(dbx) run < input2 > output2
If you execute these run commands in the order presented, you can repeat
the last run command by using the rerun command:
(dbx) rerun
Automatically Executing Commands on Startup
You can use an editor to create a .dbxinit command file. This file contains
variousdbx commands that automatically execute when you invoke dbx. You
can put any dbx command in the .dbxinit file. If a command requires input,
the system prompts you for it when you invoke dbx.
On invocation, dbx looks for a .dbxinit file in the current directory. If the
current directory does not contain a .dbxinit file, dbx looks for one in your
home directory. (This assumes that you have set the IRIX system HOME
environment variable.)