| ACADEMIC COMPUTING and COMMUNICATIONS CENTER | |||||||||
The batch submission qsub command | ||
| Overview | ||
|
There are two commands to submit jobs to the batch system: scasub and qsub. While the scasub command is used to submit parallel jobs to batch, qsub is normally used to submit serial jobs (serial jobs uses only one processor). This document will cover the qsub command. |
||
| Syntax | ||
|
The format of the qsub command is:
where script_file is not an executable program but rather a text file containing, among other things:
If something like the following message is in your output file:
then you used an executable program
as the option to the qsub command, an invalid action. What follows will be a series of examples, the first of which will present the most basic of commands/options. Each subsequent example will show an additional option. The standard "hello_world" program, a program whose sole function is to print the line "Hello World" to stdout and exit, will be used. However, before doing so, let's review some basic batch job output and management management principles. After submitting the job to batch, a job id is assigned in the format: xxx.argo.cc.uic.edu To see the status of your job, use: qstat job-id For stdout and stderr, batch creates two files. The names of the files are constructed from the job name, the letter e (for stderr) or o (for stdout), and the job number. So for your hello_world run that had job-id 338, you would have the following files: hello_world.o338 <-- this is stderr |
||
| Examples | ||
Example 1:
Example 2:
Example 4:
Example 5:
Example 6:
Some additional options; there are more but these seem relevant
|
||
| Documentation | ||
|
||
| 2004-8-17 ACCC Systems Group |
|