You can execute the
command file for a server by using the SUBMIT command to submit a
batch job. The batch job creates a detached process, which then executes
the command file.
Use the SUBMIT command to start the server during start-up
of your OpenVMS operating environment or start a server by executing
a command.
Because of its nature,
a server usually runs in a detached process. Instead of executing
the RUN command directly during system start-up or at other times,
you should execute the RUN command in a batch command file that you
submit with the SUBMIT/USER= command. This ensures that the server
is created with appropriate privileges and file access authority.
The SUBMIT/USER= command requires the CMKRNL privilege.
Here is the syntax of
the SUBMIT command:
$ SUBMIT/USER=user-name batch-filename
specifies the name
of the user that executes the batch job that creates the process in
which the server runs.
specifies the batch
job to be executed. The purpose of the batch job is to create a detached
process in which the server executes. Therefore, this batch job usually
consists of one RUN command. For example:
$ RUN /DETACHED -
/AUTHORIZE -
/INPUT=command-input-file -
/OUTPUT=command-output-file -
/ERROR=error-file -
/PROCESS_NAME=process-name -
/SYS$SYSTEM:LOGINOUT.EXE
Note: This file must also contain
device or directory specifications. If the file does not contain these
specifications, then the detached process might fail.
specifies the name
of the file to which the record of the execution of the detached process
is written. This file should be accessible to any administrator of
the server and to developers of applications that use the server.
This file contains any information that is written to SYS$OUTPUT.
Note: This file must also contain
device or directory specifications. If the file does not contain these
specifications, then the detached process might fail.
specifies the file
to which OpenVMS errors are written. This should be accessible to
any administrator of the server and to developers of applications
that use the server. This file contains information that is written
to SYS$ERROR.
Note: This file must also contain
device or directory specifications. If the file does not contain these
specifications, then the detached process might fail.
specifies a descriptive
name of the detached process in which the server executes. This value
can be the same as the server name that you specify for the SERVERID=
option in the PROC SERVER statement.