Part II. Preliminary Definition of NETRJE Commands
For purposes of discussion this section gives a very preliminary definition of the NETRJE commands and their replies. The intent is to give a brief but not exhaustive definition of each command and its major replies to give the flavor of the protocol. We do not do this to discourage nit-picking by critics, since we may actually overlook the obvious on occasion, but merely to expedite the writing of this paper.
The reply scheme will follow the model of the revised FTP reply codes described in RFC 640.
Access Control
USER <usercode>
PASS <password>
ACCT <account>
These perform the normal functions to log the user into the system. The replies to them are the standard ones in FTP. It was never clear why "account" was not included in the old NETRJE. Presumably, if it's necessary for an FTP or Telnet user, it will be necessary for an RJE user.
REINIT
This command reinitializes the state of the NETRJE server process so that it is ready for a new user. If the transfer of data is in progress for the previous user, it will be allowed to complete.
ABORT
This command is used to abort the transfer of data. This command is meaningful to the Server only if the data is being transferred over the Telnet connection or the default data sockets. If FTP is being used, the execution of this command is the responsibility of the USER NETRJE process.
BYE
This command causes the Server to log out the user and close the Telnet connection. If the transfer of data is in progress, the action of the command will be delayed until the transfer is complete.
SCHED <input part><output part>
<input part>::= <empty>|<server pathname> [DISCARD]
INPUT <CRLF> <text> <CRLF>.<CRLF>
output part ::= <empty>|<server pathname>[DISCARD]
server pathname ::= {locally recognizable string of characters
terminated by an ASCII NULL}
This command causes the input described by the <input part> to be entered into the RJE job stream and the output produced to be disposed of according to the <output part>. The null condition for either argument implies that the information has been previously specified or is the default.
For the <input part>, the <empty> may imply two actions. If an INDEF command has previously specified a <server pathname>, input to the job stream is taken from the file indicated by the file name. If the INDEF command has specified that the input is to come from a CCN-like data transfer socket, the SCHED <empty> command is the signal for the Server to start reading data.
The DISCARD modifier, if present, indicates that the file should be discarded after it has been transmitted or it has been received and executed. If the input stream is to be sent on the Telnet connection, the source may be a local device or a human user. This facility is provided for mini-hosts that can't use one of the other techniques and for the user who wishes to enter job control directly at his terminal.
The empty for output specifies either the primary output file of the job (the default) or a previously specified server pathname (OUTDEF command).
Successful replies to this command should indicate any job-id assigned by the local RJE system along with other status informaton. Failure would be because files did not exist, access was denied, etc.
OUTPUT <output spec>
<output spec>::= <job-id><xmsn part>|<job-id><server pathname>
<xmsn part>::= <empty>| /<IO params>
<IO params>::= <xmsn params>, <dest>
This command indicates to the Server what output is to be sent to the user, how it is to be sent, and to whom. The <IO params> part will allow the specification of a host and socket so that output may be sent to a TIP printer, or alternatively sent on the Telnet connection or to the default data sockets. This argument also specifies the format and representation of the data.
When the Server receives this command, it will proceed to transmit the output to the host in the prescribed manner. The reply structure of this command will depend on how the output is moved and will be discussed in more detail later.
INPATH
This command returns to the user a legal pathname at the Server. The user may then transfer his input to this pathname for eventual submission to the RJE facility.
OUTPATH
This command performs a similar function to INPATH.
DISCARD <job-file-id> | <server pathname>
This allows the user to destroy input or output files associated with a job.
INDEF <job-id><I/O params>
OUTDEF <job-id><I/O params>
These commands allow the user to specify the parameters necessary to send input or retrieve output. This command specifies how the data will be transferred and specifies format, etc.
CANCEL <job-id>
This command allows a job to be cancelled from the RJE job stream.
STATUS <status arg>
status arg ::= <empty>|<user id>|<job-id>|<job-id><blank><job-file-id>
This command allows the user to determine the status of the RJE session, all jobs under his usercode, a specific job, or the output of a specific job.
ALTER <job-id><site specific option>
SITE <site specific option>
These commands allow site specific commands to be passed to the Server RJE system. The ALTER command is intended to effect specific jobs, while the SITE command is used for commands of more global effect. They could be merged into one.
OP <operator message>
This command allows messages to be sent to the operator at the Server site.