Startup (Part 2): The command line

 

Last week's tip looked at initialization files. The commands in those files affect every TotalView session. Command line options have a different purpose: they affect just the session being started.

Generally, command line options tell TotalView to do something that is best done before it starts executing. For example, the -pvm option enables PVM support within TotalView, which is something you can't do once TotalView starts executing. Or the -nlb option tells TotalView that it shouldn't automatically load breakpoints-loading them is the default. Here's where command line options are described:

Two options that are more general are -e and -s. The -e command lets you directly execute a CLI command. For example:

totalview -e `puts hello'

The -s option tells TotalView that it should execute the CLI commands contained within a file. This is really handy when you have more than one .tvdrc file or when you need to debug a program in different environments.

You can use more than one -e and -s option on one command line. For example:

tvmain -e '"set foo 3"' -e 'puts "The value of foo is $foo" `

You can find tips that we've already sent out in our Tip Archive

Help us improve these tips!