| Prev | Next | Start of Chapter | End of Chapter | Contents | Glossary | Index | Comments | (7 out of 48)

Using Command Line Options

You can include one or more command line options in the command that starts G2. The syntax is:

In command line syntax summaries, brackets [] indicate optional elements, braces {} group elements, a vertical bar | separates alternatives, and an ellipsis... indicates zero or more repetitions of the preceding element.

Command line options pass various kinds of information to a new G2 process. Regardless of your computer's operating system, each command line option must begin with the - (hyphen) character, as in this sample command line:

Command line options can appear in any order. Some options require or allow an argument: a keyword, pathname, expression, or other value that specifies the exact meaning of the option.

Supported Command Line Characters

When you launch G2 from the command line, G2 interprets the command line as a string of 8-bit bytes representing Latin-1 characters. Any two-byte Unicode characters, such as Korean or Japanese characters, therefore become pairs of Latin-1 characters, and the command line is processed accordingly.

Using Environment Variables

Many G2 command line options have as counterparts a similarly named environment variable (or VMS logical). For example, the -v5ok command line option has a counterpart G2V5_OK environment variable.

If you start G2 processes many times for similar purposes, setting G2 environment variables once can be more convenient than specifying the same options in each command line. Using G2 command line options, rather than setting environment variables, might be more appropriate when your G2 process is running a delivered application.


Note: If you specify a G2 command line option when its counterpart environment variable is already set, the command line option setting takes precedence.

| Prev | Next | Start of Chapter | End of Chapter | Contents | Glossary | Index | Comments | (7 out of 48)

Copyright © 1997 Gensym Corporation, Inc.