30.01.2013 Views

TotalView Users Guide - CI Wiki

TotalView Users Guide - CI Wiki

TotalView Users Guide - CI Wiki

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Using Command Arguments<br />

‘more’ Processing<br />

When the CLI displays output, it sends data through a simple more-like process.<br />

This prevents data from scrolling off the screen before you view it.<br />

After you see the MORE prompt, press Enter to see the next screen of data.<br />

If you type q (followed by pressing the Enter key), the CLI discards any data<br />

it hasn’t yet displayed.<br />

You can control the number of lines displayed between prompts by using<br />

the dset command to set the LINES_PER_SCREEN CLI variable. (For more<br />

information, see the <strong>TotalView</strong> Reference <strong>Guide</strong>.)<br />

Using Command Arguments<br />

The default command arguments for a process are stored in the ARGS(num)<br />

variable, where num is the CLI ID for the process. If you don’t set the<br />

ARGS(num) variable for a process, the CLI uses the value stored in the<br />

ARGS_DEFAULT variable. <strong>TotalView</strong> sets the ARGS_DEFAULT variable when<br />

you use the –a option when starting the CLI or the GUI.<br />

The –a option tells <strong>TotalView</strong> to pass everything that follows on the command line to the<br />

program.<br />

For example:<br />

totalviewcli –a argument-1, argument-2, ...<br />

To set (or clear) the default arguments for a process, you can use the dset<br />

command to modify the ARGS() variables directly, or you can start the process<br />

with the drun command. For example, the following clears the default<br />

argument list for process 2:<br />

dunset ARGS(2)<br />

The next time process 2 is started, the CLI uses the arguments contained in<br />

ARGS_DEFAULT.<br />

You can also use the dunset command to clear the ARGS_DEFAULT variable;<br />

for example:<br />

dunset ARGS_DEFAULT<br />

All commands (except the drun command) that can create a process—<br />

including the dgo, drerun, dcont, dstep, and dnext commands—pass the<br />

default arguments to the new process. The drun command differs in that it<br />

replaces the default arguments for the process with the arguments that are<br />

passed to it.<br />

206 Chapter 10: Using the CLI

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!