Using Script Files

DOGMA supports a very simple scripting language.  The scripting language allows commands to be executed as if they were typed on the SysCon command line.

Script files may consist of multiple procedures, and execution of script files always begins a procedure call "main".
 

Running Script Files

To run a script file type "runScript <scriptFileName>" at the SysCon command prompt.

Script Commands

cmd - Runs a command as if it were typed on the SysCon command line.

examples:
    cmd "runMPI math.MatrixMult 4 400"
    cmd "runMPIP procfile.txt"
    cmd "stopCluster mountains"

waitUntil - Sleeps until a certain time has passed.

example:  waitUntil "1997.12.02 09:38:45 PM GMT-7"

delay  - Sleeps a certain number of milliseconds.

example:  delay 1000

call - Calls a script file procedure.

example:  call myproc
 

Script File Example

procedure startup {
    cmd       "startCluster mountains"
    delay     20000
}

procedure shutdown {
    cmd       "stopCluster mountains"
    delay     20000
}

procedure runTest {
    cmd       "setAccept mymaster.foo.bar false"
    delay     3000
    waitUntil "1997.12.02 09:38:45 PM GMT-7"
    cmd       "runMPIP procfile.txt 4"
    delay     3000
}

procedure main {
    delay  3000
    call   startup
    call   runTest
    call   shutdown
}