Skip to main content

Description of RJS Commands, Standard Syntax

The following is a list of the commands supported in the standard syntax. Where not specified, the command's response is '200 OK'. In those cases where it is stated that the user must be logged in, the response '504 LOGIN PLEASE.' is displayed if the user is not logged in.

'USER' ['='] <user name> <CA>

Specifies the user's user name for accounting purposes, initiates login, and initializes the source, print, and punch user name accumulators to <user name>. To complete login, this command must be followed by a successful PASS command. The only other command allowed before the user is logged in is BYE. The response to a syntactically valid USER command is always '330 ENTER PASSWORD'

'PASS' ['='] (password> <CA>

Specifies the user's password to gain access to the user's account, completes the login initiated by a previous USER command, and initializes the source, print, and punch password accumulators to <password>. The response to a successful PASS command is '230 USER <user name> OWNS REMOTE TERMINAL <integer>.', where <integer> is the number of the HASP virtual RJE terminal owned by the user. The following error replies are possible: '431 NEW USERS ARE NOT BEING ACCEPTED AT THIS TIME.' if there is no free HASP terminal to assign to the user (there is currently a maximum of 10), or if there are insufficient other resources available to support another user; '431 INCORRECT PASSWORD.' if the specified <password> is not that assigned to the previously specified <user name>; '431 ANOTHER USER IS LOGGED IN AS <user name>.' - only one user is allowed logged in with a given <user name> at a time.

'ACCT' ['='] <account> <CA>

Specifies the UCSB Computer Center account number to which the user's use of RJS is to be billed, and initializes the source, print, and punch account accumulators to <account>. The response to a syntactically correct ACCT command is '200 OK'.

As previously stated, RJS billing is yet to be implemented, and therefore the ACCT command is optional. Users and writers of user processes are warned, however, that it will eventually be required, and that at that point, the PASS command will return a reply id of 330, and the ACCT command will have those replies listed above under PASS.

'BYE' <CA>

Logs the user out and closes the TELNET connections to him, regardless of whether there are any file transfers in progress; if there are, they continue unaltered. The response to a BYE Command is always '231 LOGOUT C0MPLETED; TRANSFERS (IF ANY) CONTINUE.', followed by a continuation line of 'TTY <integer> IS DISCONNECTED.'

'STATUS' <CA>

Lists the user names of those users currently known to RJS. The response is either '100 NO USERS ARE KNOWN TO RJS' or '10O THE FOLLOWING USERS ARE KNOWN TO RJS:', followed by one or more lines, each beginning with a continuation reply id of four blanks, giving a remote terminal number, the user name of the user who owns that terminal, and the name of the site from which he last logged in.

'SYNTAX' <CA>

Causes the current command syntax to become local syntax. The TELNET modes (full or half duplex, character or line at a time) most recently in effect in local syntax again become effective. RJS responds with the local syntax prompt character (currently number sign, '#').

The remaining commands require the user to be logged in.

'REINIT' <CA>

Resets to empty the source, print, and punch accounting parameter, the source, print, and punch pathname, and the login accounting parameter accumulators. The response to a REINIT command is always '204 OK'.

('INUSER' _ 'INID') ['='] <user name> <CA>

Sets the source user name accumulator to (user name>.

'INPASS'  ['='] <password> <CA>

Sets the source password accumulator to <password>.

'INACCT'  ['='] <account> <CA>

Sets the source account accumulator to <account>.

'OUTUSER' ['='] <user name> <CA>

Sets the print and punch user name accumulators to <user name>.

'OUTPASS' ['='] <password> <CA>

Sets the print and punch password accumulators to <password>.

'OUTACCT' <account> <CA>

Sets the print and punch account accumulators to <account>.

'INPATH' ['='] <pathname> <CA>
<pathname> = <file> _ <socket>
<socket> = [<host addr> ','] <socket number> <attributes>
<file> = <host addr> <attributes> '/' <filename>
<host addr> = <integer>
<socket number> = <integer>
<integer> = <decimal integer> _ ('D' <decimal integer>) _
('H' <hexadecimal integer>) _ ('X' <hexadecimal integer>) _
('O' <octal integer>)
<attributes> = ':T' _ ':A' _ ':N' _ ':' _ <null> _ ':E' _
':TE' _ ':AE' _ ':NE'
<filename> = 1 to 16 ASCII characters, excluding CR and LF
(codes 0 through 127, excluding 10 and 13)

Sets the source pathname accumulator to <pathname>. The <pathname> is the means for specifying a file's source or destination; its semantics are as follows:

  1. Specification of <socket> indicates that RJS will establish a simplex connection to the stated socket (RJS issuing the CONNECT, user issuing a LISTEN). The data is then transferred over this connection, with CLOSE signaling end of file.
  2. If <host addr> in <socket> is defaulted, the host containing the TELNET user will be assumed.
  3. Specification of <file> indicates that RJS will contact the standard FTP server socket (currently socket 3) at the stated host, and transfer the data according to the File Transfer Protocol. The <file name> referred to here corresponds to the term <pathname> used in the FTP specification document, RFC #354.
  4. The type of carriage control and the data code used are determined by <attributes>. The meaning of this parameter is as follows:
':T'        ASCII code, TELNET carriage control
':A' ASCII code, ASA carriage control
':N' ASCII code, no carriage control
':' identical to ':N' for input, ':A' for output
<null> identical to ':N' for input, ':A' for output
':E' identical to ':NE' for input, ':AE' for output
':TE' EBCDIC code, TELNET carriage control
':AE' EBCDIC code, ASA carriage control
':NE' EBCDIC code, no carriage control

Detailed descriptions of the transfer modes may be found below under 'RJS File Transfer.'

('OUTPATH' _ 'OUT') <output file> '=' <disp> <CA>
<output file> = 'A' _ 'B' _ <null>
<disp> = <pathname> _ '(H)' _ ('(S)' (pathname>) _ '(D)'

Stores <disp> in the print pathname accumulator if <output file> is either 'A' or <null>, or in the punch pathname accumulator if <output file> is 'B'. The meanings of the options for <disp> are as follows:

<pathname>            transmit-and-discard - the file is sent and
then deleted

'(H)' hold only - the file is not sent but rather
held for user intervention

'(S)' <pathname> save - the file is sent and then held for user
intervention

'(D)' discard - the file is deleted as soon as it is
produced
'INPUT' <CA>

Creates a job, stores with it the contents of the source, print, and punch accounting parameter and pathname accumulators, and places it in a queue within RJS of jobs owned by the user awaiting source file transfer. When it becomes the first or only job in this queue, the retrieval of its source file is initiated. A job identifier ('jobid') is assigned to the job and displayed to the user. The contents of the source and print pathname accumulators must have been set by INPATH and OUTPATH commands previous to the INPUT command. If successful, the message '260 ASSIGNED JOBID IS <jobid>.' is displayed, where <jobid> is that which may used in subsequent RJS commands to identify this particular job. If the user is found to own the maximum number of jobs (currently 5), an attempt is made to satisfy the request by finding the oldest of the user's jobs that has completed processing. If this can be done, the old job is deleted, and the response to the command is '260 JOB <old jobid> IS BEING DISCARDED TO MAKE ROOM FOR THE NEW JOB.', followed by a continuation line of 'ASSIGNED JOB ID IS <new jobid>.' The following error responses are possible: '360 SOURCE PATHNAME HAS NOT BEEN SPECIFIED.', '505 PRINT PATHNAME HAS NOT BEEN SPECIFIED.', '504 NEW JOBS ARE NOT BEING ACCEPTED AT THIS TIME.', and '504 USER (user name> ALREADY OWNS THE MAXIMUM NUMBER OF JOBS.'

'CHANGE' <jobid> <output file> '=' <disp> <CA>

Stores <disp> as the print pathname of job <jobid> if <output file> is either 'A', or <null>, or as the punch pathname if <output file> is 'B', if the appropriated file transfer has not yet begun. The following error replies are possible: '464 JOB <jobid> NOT FOUND.', '5O4 JOB <jobid> IS ALREADY BEING, OR HAS BEEN, PRINTED.', if <output file> is 'A', '504 JOB <jobid> IS ALREADY BEING OR HAS BEEN, PUNCHED.', if <output file> is 'B', and '464 USER <user name> DOES NOT OWN JOB <jobid>.'

'STATUS' <jobid> <CA>

Causes the status of the job known to RJS as <jobid> to be displayed. Included in this display are in which stage of RJS processing the job is ('BEING READ', 'IN EXECUTION', 'BEING PRINTED', 'BEING PUNCHED', or 'HAS COMPLETED'), the pathname information (accounting parameters, host name, socket number, attributes, disposition, and filename) for those files (source, print and punch) that have been supplied for the job, and if the job has failed at some stage of RJS processing, an explanation of the failure. The possible responses are '464 JOB <jobid> NOT FOUND.', and a line with reply code 161 followed by zero or more continuation lines explaining the status of the job.

'CANCEL' <jobid> <CA>

Causes processing of the job known to RJS as <jobid> to terminate immediately, and all record of it to be deleted. If FTP data and/or command connections are pending or established, they are closed; if the job is in execution, an OS CANCEL command is issued to terminate execution. Any output from the job is lost, and a subsequent request for status of job <jobid> will return the diagnostic that the job is not found. The successful responses are '262 JOB <jobid> DELETED.' and '262 JOB <jobid> WILL BE DELETED AS SOON AS POSSIBLE.'; the possible failure responses are '464 JOB NOT FOUND.' and '464 USER <user name> DOES NOT OWN JOB <jobid>.'

The following standard RJS commands are as yet not implemented, and elicit the response '506 COMMAND NOT IMPLEMENTED.': ABORT, ALTER, BACK, HOLD, OP, RECOVER, RESTART, and SKIP.