# Control file. Directives such as "Machine: " etc. are not case-
# sensitive. The ':' character must be followed by whitespace for
# the command to be recognized. Comments are not allowed on the
# same line as a directive.

# Machine: <name> <number of instances> [ <search/replace patterns> ]
#
# The machine name, and number of parallel invocations of the program
# to run on the machine. If there are search/replace patterns, use them
# to modify the command given by the "Command:" line. This might be used
# to change directory names in options, or something else machine-specific.
# The search/replace patterns should be standard PERL commands, such
# as:
# s|/home/\([^/]*\)|/homes/\1|g
#
# If any blanks or explicit tabs (i.e. not '\t', but the ASCII-9)
# appear in a pattern, the entire pattern should be quoted, so:
# "s|a b|ab|g"
#
# The search/replace commands are executed after the full command
# has been built (i.e. after $NUM variable substitution). They are
# executed in the order in which they appear on the line.
#
Machine: fred 1
Machine: barney 1
Machine: wilma 1 s|/home/wibble|/home/guest|g
Machine: betty 1
Machine: bigsmpbox 4


# Suppress_output: TRUE/FALSE
# Whether or not to redirect stdin and stderr to the bit bucket.
# Defaults to TRUE.
#
Suppress_output: TRUE

# Status_reports: TRUE/FALSE
# Whether or not to report each command as it completes.
# Defaults to FALSE.
#
Status_reports: FALSE

# Run_as_user: MACHINENAME NAME
#
# If present, the remote command on machine MACHINENAME is to be 
# executed with username NAME, rather than the current username.
#
Run_as_user: wilma guest


# Remote_exec_command: <command> <options>
#
# Use this command to execute commands on the remote machine.
# Replace '$1' with the machine name.
# If the options contain a '$2', it is replaced with the username,
# or Run_as_user, if defined. The command to be executed is inserted
# as text following the end of the options.
# If not defined, defaults to "/usr/bin/rsh -l $2 $1".
#
Remote_exec_command: /usr/bin/rsh -l $2 $1


# Command(s) to run. Substitute $NUM with the corresponding entry from
# the runlist below. Substitute $* with the entire line as it appears
# in the runlist. To protect a '$' for explicit inclusion in a
# command line, prepend a backslash '\'.
#
Command: cd \$HOME/raytracings ; echo "Frame " $1 $4 $5 ; /usr/X11/bin/xpovray trace.ini +I trace.pov +GA/dev/null +KI0.0 +KF60.0 +KFI0 +KFF10 +SF$1 +EF$1 +W$2 +H$3

# Runlist must be the last field in the file.
# All lines after it are interpreted as parts of the command to run.
# Blank lines WILL result in additional invocations, and the '#' character
# is no longer a comment character. Beware!
#
# To embed a blank in a single parameter, put the parameter in single
# or double quotes.
#
Runlist:
0 640 400 "running on" `hostname`
1 640 400 "running on" `hostname`
2 640 400 "running on" `hostname`
3 640 400 "running on" `hostname`
4 640 400 "running on" `hostname`
5 640 400 "running on" `hostname`
6 640 400 "running on" `hostname`
7 640 400 "running on" `hostname`
8 640 400 "running on" `hostname`
9 640 400 "running on" `hostname`
10 640 400 "running on" `hostname`
