|
NAMEpbs_alterjob - alter pbs batch jobSYNOPSIS#include <pbs_error.h>#include <pbs_ifl.h> int pbs_alterjob(int connect, char *job_id, struct attrl *attrib, char *extend) int pbs_alterjob_async(int connect, char *job_id, struct attrl *attrib, char *extend) DESCRIPTIONIssue a batch request to alter a batch job.A Modify Job batch request is generated and sent to the server over the connection specified by connect which is the return value of pbs_connect(). When the asynchronous pbs_alterjob_async() call is used, the server will validate the request and reply before modifying the job. This version of the call can be used to reduce latency in scheduling, especially when the scheduler must modify a large number of jobs. The argument, job_id, identifies which job is to be
altered, it is specified in the form:
The parameter, attrib, is a pointer to an attrl structure which is defined in pbs_ifl.h as: struct attrl { char *name; char *resource; char *value struct attrl *next; }; The attrib list is terminated by the first entry where next is a null pointer. The name member points to a string which is the name of the
attribute. The value member points to a string which is the value of
the attribute. The attribute names are defined in pbs_ifl.h:
If attrib itself is a null pointer, then no attributes are altered. Associated with an attribute of type ATTR_l (the letter ell) is a resource name indicated by resource in the attrl structure. All other attribute types should have a pointer to a null string ("") for resource. If the resource of the specified resource name is already present in the job's Resource_List attribute, it will be altered to the specified value. If the resource is not present in the attribute, it is added. Certain attributes of a job may or may not be alterable depending on the state of the job; see qalter(1B). The parameter, extend, is reserved for implementation defined extensions. SEE ALSOqalter(1B), qhold(1B), qrls(1B), qsub(1B), pbs_connect(3B), pbs_holdjob(3B), and pbs_rlsjob(3B)DIAGNOSTICSWhen the batch request generated by the pbs_alterjob() or pbs_alterjob_async() function has been completed successfully by a batch server, the routine will return 0 (zero). Otherwise, a non zero error is returned. The error number is also set in pbs_errno.
Visit the GSP FreeBSD Man Page Interface. |