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

init

Directs the new G2 process to use a particular G2 initialization file.

Platforms

All platforms

Syntax

init-file-path: Location and name of a G2 initialization file.

Equivalent Environment Variable

Description

A G2 init file is a text file that contains one or more commands. A G2 initialization file can have any name and extension.

If you do not specify the -init option, G2 searches for a file named g2.init in the directory from which G2 is launched. If G2 finds this file, it loads it as the G2 initialization file.

Note that the -init option and the commands in the g2.init file take precedence over the -kb and -start options. If either one is present on the command line, the new G2 process ignores both -kb and -start.

Special Considerations

If the file NOCMD.INIT is stored in the root directory (that is, in the directory / on UNIX platforms, the directory \ on Window NT platforms, or in the directory [000000] on VMS platforms), G2 checks whether the file name specified by init-file-path is listed in NOCMD.INIT.

If NOCMD.INIT resides in the root directory, G2 loads an initialization file only if its full pathname is listed there.

Example

This command start a new G2 process and, after starting up, executes the initialization commands in the file /usr/jane/myg2.init:

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

Copyright © 1997 Gensym Corporation, Inc.