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

ok

Specifies the location of the G2 authorization file.

Platforms

All platforms

Syntax

	-ok ok-file-path 
ok-file-path: Location and name of the authorization file; you can specify a file with any name and location.

Equivalent Environment Variable

Same as ok-file-path.

Description

Use the -ok option to identify the location and name of the G2 authorization file. The default name of the authorization file is g2.ok.

If the file NOCMD.OK is stored in the root directory, G2 checks whether the authorization file name specified by ok-file-path is listed in NOCMD.OK. G2 loads the file only if it is listed there. (The root directory is the directory / on UNIX platforms, the directory \ on Windows platforms, or the directory [000000] on VMS platforms.)

If you omit the -ok option, the new G2 process looks for the authorization file in the directory from which you launched G2.

Special Considerations

If both the -ok option and the G2_OK environment variable are specified, the -ok option takes precedence.

If both the -v5ok and -ok options are specified in the command line, the
-v5ok option takes precedence.

If both the G2V5_OK and G2_OK environment variables are specified, G2V5_OK takes precedence.

Example

On a UNIX platform, this command starts a new G2 process and identifies /usr/jane/my.ok as the authorization file:

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

Copyright © 1997 Gensym Corporation, Inc.