pbs_alterjob(3B)
β¨ NAME β¨
okay so this is pbs_alterjob(3B), from PBS Professional, and it does exactly what it says on the tin: pbs_alterjob β alter a PBS batch job. bestie, it's giving βchange your jobβs fit without restarting the whole vibe.β π
πΈ SYNOPSIS πΈ
#include <pbs_error.h>
#include <pbs_ifl.h>
int pbs_alterjob(int connect, char *jobID, struct attropl *change_list,
char *extend)
π¦ DESCRIPTION π¦
Issues a batch request to alter a batch job. iconic behavior, honestly. π«Ά
This command generates a Modify Job (11) batch request and sends it to the server over the connection specified by connect.
β οΈ real talk: job state may affect which attributes can be altered. Peep the qalter(1B) man page for that. no cap.
π ARGUMENTS π
connectβ Return value ofpbs_connect(). Specifies connection over which to send batch request to server.jobIDβ ID of job or job array to be altered. Formats, bestie:- Format for a job:
<sequence number>.<server name> - Format for an array job:
<sequence number>[].<server name>
- Format for a job:
change_listβ Pointer to a list of attributes to change. Each attribute is described in anattroplstructure, defined inpbs_ifl.has:
struct attropl {
struct attropl *next;
char *name;
char *resource;
char *value;
enum batch_op op;
};
extendβ Character string for extensions to command. Not currently used. lowkey just chilling there. π
π Members of attropl Structure
nextβ Points to next attribute in list. A null pointer terminates the list.nameβ Points to a string containing the name of the attribute.resourceβ Points to a string containing the name of a resource. Used only when the specified attribute contains resource information. Otherwise,resourceshould be a pointer to a null string.
If the resource is already present in the job's Resource_List attribute, the value is altered as specified. Otherwise the resource is added. slay, it handles both cases. β¨
valueβ Points to a string containing the value of the attribute or resource.opβ Defines the operation to perform on the attribute or resource. For this command, operators areSET,UNSET,INCR,DECR.
β RETURN VALUE β
The routine returns 0 (zero) on success. π
If an error occurred, the routine returns a non-zero exit value, and the error number is available in the global integer pbs_errno. keep an eye on that, bestie. π
π SEE ALSO π
qalter(1B)qhold(1B)qrls(1B)qsub(1B)pbs_connect(3B)pbs_holdjob(3B)pbs_rlsjob(3B)
mwah π this page is from the Local source, dated 15 November 2019, and it's the pbs_alterjob(3B) page for PBS Professional. bye bestie, go alter that job with main character energy! π«Άβ¨
π¦ where this page comes from
- nixos 26.05: openpbs 23.06.06-unstable-2026-04-02
- nixpkgs unstable: openpbs 23.06.06-unstable-2026-04-02
- Copyright (C) 1994-2021 Altair Engineering, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms