3.1. Job submit command(qsub command)

Submit command places a job on the job queue of the supercomputer.

Submitting options also can be described in the execution script.

For more details, see each manual.

Attention

Please submit job to appropriate queue with qsub command, not to execute your program on the front end node directly. If you execute a program on the front end node, it may be canceled by the administrator because it has effects on other users.

3.1.1. Usage

qsub [-q queue name] [-l select=number of nodes] [-N job name] [-M e-mail address] [-m mail point] [-l walltime=limit of walltime] [execution script file]

3.1.2. List of options

Option

Value

-q queue name

Set the queue name. As for details of queue, see a list of queues.

-l select=number of nodes

Specify number of the nodes to be used. If not specified, the default value for the queue is used. (see 3.8 List of queue )

-N job name

Set the job name. The name of job is up to 236 characters. The real-time job reference system displays up to 64 characters. If not specified, the system assigns the default job name.

-M e-mail address

Set e-mail address to be received. To receive an e-mail, ‘-m’ option is required.

-m mail point

Specify the set of events that causes mailing to be sent to the list of users specified in the ‘-M’ option. To receive an e-mail, ‘-m’ option is required.

-l walltime= walltime

Specify the limit of walltime. If not specified, the default value for the queue is used. (see 3.8 List of queue )

-l license name=number of use licenses

Specify the number of licenses for license-managed applications.

3.1.3. Example

・queue:P_030,number of nodes: 2, limit of walltime: 1 hour, script file:hello.sh

Example script

#!/bin/sh
#PBS -q P_030
#PBS -l select=2
#PBS -l walltime=1:00:00
 :
 :
 :

Execution example

qsub hello.sh

・queue:P_030,script file:hello.sh, recipient address: userA@test.com. Mail is sent when the job begins execution (option is ‘-m b’) and terminates (option is ‘-m e’).

#!/bin/sh
#PBS -q P_030
#PBS -M userA@test.com
#PBS -m be
 :
 :
 :

Execution example

qsub hello.sh

・queue:P_030,script file:hello.sh,job name:TEST

#!/bin/sh
#PBS -q P_030
#PBS -N TEST
 :
 :
 :

Execution example

qsub hello.sh