Next: Types
Up: Basics
Previous: Initializing and closing
  Contents
dicerc file
Once started, the program parses arguments, and then tries to read
a file named dicerc. This file is searched in the following
directories, in this order:
- ./dicerc
- /dicerc
- /etc/dicerc
This file should contain a list of the computers that should run a
copy of the program. The format of each entry is the following:
-
- [machine name or IP] [path of program] [special function name]
Where:
- [[machine name or IP]]Name or IP of the machine to
spawn a process.
- [[path of program]]Full path of the program in that
machine. Use % if it's the same of the machine spawning.
- [[special function name]]Name of a special function
to be run in that machine (see section 5.2).
Fields are separated by any number of spaces or tabs. Each line must
contain only one entry. Blank lines or lines starting with # are
ignored. You may ignore either the two last or just the last field.
The same computer may appear many times in the list, and the same
number of processes will be spawned there. Spawning is covered in
section 5.1.
A sample dicerc:
-
- machine1 % function1
machine2 /usr/bin/programname function2
machine3 /usr/local/bin/programname
machine1
The hierarchy of the clients is set by their order in dicerc: machines
closer to the top of the file have a higher priority. The first node
on the file is called original, and has higher priority than
any other node.
Next: Types
Up: Basics
Previous: Initializing and closing
  Contents
2001-12-09