.\" Copyright (C) 1994-2018 Altair Engineering, Inc.
.\" For more information, contact Altair at www.altair.com.
.\"
.\" This file is part of the PBS Professional ("PBS Pro") software.
.\"
.\" Open Source License Information:
.\"
.\" PBS Pro is free software. You can redistribute it and/or modify it under the
.\" terms of the GNU Affero General Public License as published by the Free
.\" Software Foundation, either version 3 of the License, or (at your option) any
.\" later version.
.\"
.\" PBS Pro is distributed in the hope that it will be useful, but WITHOUT ANY
.\" WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
.\" FOR A PARTICULAR PURPOSE.
.\" See the GNU Affero General Public License for more details.
.\"
.\" You should have received a copy of the GNU Affero General Public License
.\" along with this program. If not, see .
.\"
.\" Commercial License Information:
.\"
.\" For a copy of the commercial license terms and conditions,
.\" go to: (http://www.pbspro.com/UserArea/agreement.html)
.\" or contact the Altair Legal Department.
.\"
.\" Altair’s dual-license business model allows companies, individuals, and
.\" organizations to create proprietary derivative works of PBS Pro and
.\" distribute them - whether embedded or bundled with other software -
.\" under a commercial license agreement.
.\"
.\" Use of Altair’s trademarks, including but not limited to "PBS™",
.\" "PBS Professional®", and "PBS Pro™" and Altair’s logos is subject to Altair's
.\" trademark licensing policies.
.\"
.TH qsub 1B "2 February 2016" Local "PBS Professional"
.SH NAME
.B qsub
\- submit PBS job
.SH SYNOPSIS
.B qsub
[-a date_time] [-A account_string] [-c interval]
.RS 5
[-C directive_prefix] [-e path] [-f] [-h]
.br
[-I [-G [-- ]] | [-X]] [-j join]
[-J range] [-k keep] [-l resource_list] [-m mail_events]
[-M user_list] [-N name] [-o path] [-p priority] [-P project]
[-q destination] [-r c] [-R remove] [-S path_list] [-u user_list]
[-v variable_list] [-V] [-W additional_attributes]
[-z] [script | -- executable [arglist for executable]]
.RE
.B qsub
--version
.SH DESCRIPTION
The
.B qsub
command is used to submit a batch job to PBS.
Submitting a PBS job specifies a task, requests resources and sets job attributes.
The
.B qsub
command can read from a job script, from standard input, or from the command line.
When the user has submitted the job, PBS returns the job identifier for that job.
For a job, this is of the form:
.IP
.I sequence_number.servername
.LP
For an array job, this is of the form:
.IP
.I sequence_number[].servername
.LP
During execution, jobs can be interactive or non-interactive.
By default, on the first invocation, qsub spawns a background process
to manage communication with the PBS server. Later invocations of
qsub attempt to communicate with this background process. Under
certain circumstances, calls to qsub when it uses the background
process can result in communication problems. You can prevent qsub
from spawning a background process by using the -f option, although
this can degrade performance.
.B Where PBS puts job files
.br
By default, PBS copies the stdout and stderr files from the job back to the
current working directory where the
.B qsub
command is executed. See the
.I -o
and
.I -e
options.
.B Submitting jobs by using scripts
.br
To submit a PBS job script, the user types
.IP
.B qsub
[options] scriptname
.LP
Scripts can be written in Python, UNIX shells such as csh and sh,
Perl, Windows command language, etc. The same Python script can be
used on both UNIX/Linux and Windows.
.br
A PBS job script consists of
.IP
Optional shell specification
.br
Any
.I PBS directives
.br
The user's tasks: programs, commands or applications
.LP
Example of using Python for UNIX/Linux or Windows:
.br
The Python job script named "myjob.py" for a job named
"HelloJob" prints "Hello" under UNIX/Linux or Windows:
.IP
#!/usr/bin/python
.br
#PBS -l select=1:ncpus=3:mem=1gb
.br
#PBS -N HelloJob
.br
print "Hello"
.LP
To run a Python job script under UNIX/Linux:
.IP
qsub