123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156 |
- .\" 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 <http://www.gnu.org/licenses/>.
- .\"
- .\" 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 pbs_submit 3B "3 March 2015" Local "PBS Professional"
- .SH NAME
- pbs_submit - submit a PBS batch job
- .SH SYNOPSIS
- #include <pbs_error.h>
- .br
- #include <pbs_ifl.h>
- .sp
- .B char *pbs_submit(\^int\ connect, struct\ attropl\ *attrib,
- .B char\ *script,
- .br
- .B\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ char\ *destination, char\ *extend)
- .SH DESCRIPTION
- Issue a batch request to submit a new batch job.
- .LP
- A
- .I "Queue Job"
- batch request is generated and sent to the server over the connection
- specified by
- .I connect
- which is the return value of \f3pbs_connect\f1().
- The job will be submitted to the queue specified by
- .I destination .
- .LP
- The parameter,
- .I attrib ,
- is a list of
- .I attropl
- structures which is defined in pbs_ifl.h as:
- .sp
- .Ty
- .nf
- struct attrl {
- char *name;
- char *resource;
- char *value;
- struct attrl *next;
- enum batch_op op;
- };
- .fi
- .sp
- The
- .I attrib
- list is terminated by the first entry where
- .I next
- is a null pointer.
- .LP
- The
- .I name
- member points to a string which is the name of the attribute. The
- .I value
- member points to a string which is the value of the attribute.
- The attribute names are defined in pbs_job_attributes(7B).
- .br
- .LP
- If an attribute is not named in the
- .I attrib
- array, the default action will be taken. It will either be assigned
- the default value or will not be passed with the job. The action
- depends on the attribute.
- If
- .I attrib
- itself is a null pointer, then the default action will be taken for
- each attribute.
- .LP
- Associated with an attribute of type ATTR_l (the letter ell)
- is a resource name indicated by
- .I resource
- in the
- .I attrl
- structure.
- All other attribute types should have a pointer to a null string for
- .I resource .
- .LP
- The
- .I op
- member is forced to a value of
- .I SET
- by pbs_submit().
- .LP
- The parameter,
- .I script ,
- is the path name to the job script. If the path name is relative, it will
- be expanded to the processes current working directory. If
- .I script
- is a null pointer or the path name pointed to
- is specified as the null string, no script is passed with the job.
- .LP
- The
- .I destination
- parameter specifies the destination for the job. It is specified as:
- .RS 4
- .I [queue]
- .RE
- If
- .I destination
- is the null string or the queue is not specified, the destination will be
- the default queue at the connected server.
- .LP
- The parameter,
- .I extend ,
- is reserved for implementation-defined extensions.
- .LP
- The return value is a character string which is the
- .I job_identifier
- assigned to the job by the server.
- The space for the
- .I job_identifier
- string is allocated by \f3pbs_submit\f1()
- and should be released via a call to \f3free\f1()
- by the user when no longer needed.
- .SH "SEE ALSO"
- qsub(1B) and pbs_connect(3B)
- .SH DIAGNOSTICS
- When the batch request generated by pbs_submit()
- function has been completed successfully by a batch server, the routine will
- return a pointer to a character string which is the job identifier of the
- submitted batch job.
- Otherwise, a null pointer is returned and the error code is set in pbs_error.
|