-init init-file-path
G2_INIT
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.
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.
/usr/jane/myg2.init:
g2 -init /usr/jane/myg2.init