Exec command
| GSI | Biophysics | Command subsystem |

Exec

file
member
|
&1 &2 &3 &4 &5 &6 &7 &8
/
dir(),path(),pds()
begin()
list
noterm
nostop
debug

Purpose

Execute a command file.

Function

Command script files consist of a list of commands, one per line. Lines starting with * or /* are comment lines. Up to eight symbolic parameters may be specified to allow text replacements.

Parameters

file, member

Name of the command script file

&1, &2, &3, &4, &5, &6, &7, &8

These optional parameters, identified by their position in the command string, specify text to be replaced in the file. They correspond to the placeholders &1, &2, &3, &4, &5, &6, &7, &8 in the command script file.

path(dir), dir(dir), pds(dir)

The complete command file name is built from the directory dir and the file name given as file parameter.

begin(label)

If specified execution begins with the statement
STOP label
in the command script file.

list

Don't execute commands, just list them on terminal

noterm

Quiet mode, don't list commands on terminal

nostop

Don't ask for continuation at STOP labels.

debug

Debug switch. Lots of output !

Remark

Command files may be nested, i.e. they may contain EXEC commands themselves.

Examples

Given a command script file time.exec:
  *
  *
  TIME / &1
the command
  exec time.exec on
will execute
  TIME / on

| GSI | Biophysics | Command subsystem |
Last updated: M.Kraemer@gsi.de, 3-Aug-1999

Impressum Data privacy protection