Using the MOAB Workload Manager - MOAB Serial Job
Article Index
Using the MOAB Workload Manager
Basic MOAB Script
MOAB Serial Job
Running an interactive job
Running an MPI job
MOAB MPICH2 Job
MOAB OpenMPI Job
MOAB MPICH1 Job
Job Dependencies
MOAB Queues
All Pages

Example 2: Submission of a serial type job.

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:

#!/bin/bash

#MOAB -j oe
#MOAB -l walltime=120:00

cd $PBS_O_WORKDIR
./mytest

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
1159

The command msub returns the jobID from the submitted job. You can check the status of your job using the checkjob command.

$ checkjob 1159
.....