Batch Job Submission (cont'd)
This script can now be submitted from the command line. Recalling that at minimum the wall clock time required must be specified, use:
$ qsub –l h_rt=0:10:00 –cwd example.sh
This submits the job requesting 10 minutes of wall clock time, and to run in the current working directory (-cwd).
The scheduler will then return a job id number:
Your job 10254 (“example.sh”) has been submitted.
The execution status of the job can be checked with qstat , where under the “state” column;
- “qw” means waiting in queue
- “r” means job is running
- “E” or “Eqw” means an error
Note: by default qstat will only list the current user’s jobs, to list all jobs in the queue use:
$ qstat –u “*”
Jobs can be deleted via qdel, e.g.:
$ qdel 10254