command syntax
| GSI | Biophysics | Command subsystem |

Command syntax

The command syntax differs from the conventions used in the underlying operating systems. A command consists of a command name followed by a list of command parameters. General syntax:

   COMMAND   reqpos  ...   optpos  ...  /  KEYWORD(opt)  ...
Three different types of command parameters are possible. Items in a positional parameter list must be separated by blanks or commas.

Protecting delimiters

If a positional parameter value includes delimiters, i.e. blanks, commas or slashes (e.g. in filenames), it must be enclosed in single or double quotes.
Example:
   EXEC  "mydir/myfile"

Abbreviations

Most command and parameter names may be abbreviated as long as the remainder is unique.
Example:
                                                                             
   DISP A LIST / WINDOW(100,260)                                                   
is equivalent to
                                                                             
   D  A LIST / W(100,260)                                                          

Omitting optional positional parameters

A list of optional positional parameters can only be truncated from the end (right to left). However, an individual item may be omitted if a comma is typed instead. Example: Assume the command EXAMPLE is defined with three positional parameters. Then with:
                                                                             
   EXAMPLE  ,B C                                                               
   EXAMPLE  A,,C                                                               
   EXAMPLE  ,,C                                                                
   EXAMPLE  A                                                                  
the 1st parameter, the 2nd parameter, the 1st and 2nd parameters, and the 2nd and 3rd parameters, respectively. are defaulted.
| GSI | Biophysics | Command subsystem |
Last updated: M.Kraemer@gsi.de, 2-Aug-1999

Impressum Data privacy protection