3 Further Terminal Operating Modes

The Unix C-shell script and VMS DCL command procedure which invoke rv both have optional parameters which allow the sources and destinations of the input and output streams to be defined:

  % rv   [input]  [report]

Either or both parameters may be defaulted, by omission or by using "". In the case of interactive operation, input defaults to the terminal and the report defaults to rv.lis.

The combination of parameters presented causes rv.lis’s input/output streams to be assigned one of several configurations which are intended to produce sensible results in a variety of modes of use, both interactive and batch. More direct control of rv.lis may be desirable on occasion.

On the Unix platforms, the rv.lis executable may be invoked by means of the following shell command:

  % rv.x terml report input prompts echo

The five command-line parameters, all of which must be present, are, respectively, the string identifying the terminal (perhaps obtained by using the command set terml = ‘tty‘) and the four filenames.

Under VMS, it is permissible to invoke the RV executable program by first assigning the logical names FOR0nn to the required files:

  FOR013      output     report (including error warnings)
  FOR015      input      commands and data
  FOR016      output     prompts/help/errors
  FOR017      output     echo of input

As an example, suppose that we wish to run RV in batch on a VMS system, with the commands included in the batch command procedure itself and with the results to appear in the printed log. This could be accomplished by submitting the following command procedure:

  $  ASSIGN/USER_MODE SYS_$OUTPUT FOR013  ! report
  $  ASSIGN/USER_MODE SYS_$INPUT  FOR015  ! commands
  $  ASSIGN/USER_MODE SYS_$OUTPUT FOR016  ! prompts
  $  ASSIGN/USER_MODE NL:         FOR017  ! echo
  $  RUN RV_DIR:RV
  AAT
  1977 5 16   1
  15 21 49.2  -54 56 57  1950
  END