Guardian Programmer's Guide

Table Of Contents
Writing a Command-Interpreter Monitor ($CMON)
Guardian Programmer’s Guide 421922-014
23 - 18
Controlling Process Creation
The structure of the Processcreation^msg message is as follows:
Format of command-interpreter message -52 (Processcreation^msg message):
STRUCT PROCESSCREATION^MSG;
BEGIN
INT MSGCODE; ![0] value -52
INT USERID; ![1] user ID or user logged on
INT CIPRI; ![2] initial priority of command
! interpreter
INT CIINFILE[0:11]; ![3] name of command file for
! TACL process
INT CIOUTFILE[0:11]; ![15] name of list file for
! TACL process
INT PROGNAME[0:11]; ![27] program-file name
INT PRIORITY; ![39] priority specified in RUN
! command if supplied;
! otherwise -1
INT PROCESSOR; ![40] processor number specified
in
! RUN command if supplied;
! otherwise -1
INT PROGINFILE[0:11]; ![41] the expanded IN file RUN
! parameter if supplied;
! otherwise the default IN
! file
INT PROGOUTFILE[0:11]; ![53] the expanded OUT file RUN
! parameter if supplied;
! otherwise the default OUT
! file
INT PROGLIBFILE[0:11]; ![65] the expanded LIB file RUN
! parameter if supplied;
! otherwise blanks
INT PROGSWAPFILE[0:11]; ![77] the expanded SWAP file RUN
! parameter if supplied;
! otherwise blanks
INT PARAM_LEN; ![89] length of PARAM in bytes.
STRING PARAM[0:MAX^PARAM - 1];
![90] parameter string of the RUN
! command, which is up to
528
! bytes in length including
2
! null bytes at the end of
the
! string.
END;
Note. The CIIN file name supplied in the process creation message is in local format even if
the TACL process is remote. This means that the file name does not contain the node number.
The $CMON process can get the node number of the CIIN file by calling LASTRECEIVE (or
RECEIVEINFO) to get the process ID of the TACL that sent the process creation message; the
process ID contains the node number of the TACL, which is the same as the node number of
the CIIN file.