|Using the MOAB Workload Manager - MOAB Serial Job|
Page 3 of 10
MOAB does not support the notion of a job array such as other batch engines support. For example, only one serial job can be submitted per submit file. To run a serial job under the MOAB system, compile your code as needed and write a file that can be used to execute it. If your program is in the sub-directory your submission script is in, that directory is referenced as the environmental variable $PBS_O_WORKDIR. The executable in this example is called mytest. The MOAB-script would look like:
It is not required that this script be an executable shell script, because MOAB ignores the shell command directive. However, having an executable script is useful for debugging purposes if MOAB jobs fail to start. To start your job run:
$ msub moab.ex3
The command msub returns the jobID from the submitted job. You can check the status of your job using the checkjob command.
$ checkjob 1159