pbs_statque(3B)
okay so bestie, you've opened the pbs_statque(3B) page and we are about to make queue status make sense. this is the manual page for pbs_statque β obtain status of pbs batch queues β and it's giving "ask the server for the queue receipts" energy. let's go π
π NAME π
pbs_statque β obtain status of pbs batch queues
β¨ SYNOPSIS β¨
#include <pbs_error.h>
#include <pbs_ifl.h>
struct batch_status *pbs_statque(int connect, char *id,
struct attrl *attrib,
char *extend)
void pbs_statfree(struct batch_status *psj)
π¦ DESCRIPTION π¦
okay so the whole vibe: you issue a batch request to obtain the status of a batch queue. a Status Queue batch request is generated and sent to the server over the connection specified by connect, which is literally the return value of pbs_connect(). yes bestie, you gotta connect first β that's the whole thing. π
π the id parameter
id is the name of a queue, in the form:
queue_name
or the null string. if queue_name is specified, the status of the queue named queue_name at the server will be returned. if id is a null string or null pointer, the status of all queues at the server will be returned. all of them. the whole queue family. π
π the attrib parameter
attrib is a pointer to an attrl structure which is defined in pbs_ifl.h as:
struct attrl {
struct attrl *next;
char *name;
char *resource;
char *value;
};
the attrib list is terminated by the first entry where next is a null pointer. if attrib is given, then only the attributes in the list are returned by the server. otherwise, all the attributes of a job are returned. (yes, the page says "job" right there β I'm just reporting what it says π) when an attrib list is specified, the name member is a pointer to a attribute name as listed in pbs_alter(3) and pbs_submit(3). the resource member is only used if the name member is ATTR_l, otherwise it should be a pointer to a null string. the value member should always be a pointer to a null string. character for character, bestie β no invented options here.
π§ the extend parameter
extend is reserved for implementation defined extensions. that's it. reserved. implementation defined. don't come for me, I don't know what your server does with it. π
π return value
the return value is a pointer to a list of batch_status structures, which is defined in pbs_ifl.h as:
struct batch_status {
struct batch_status *next;
char *name;
struct attrl *attribs;
char *text;
}
(no semicolon after the closing brace in the page, and I am not adding one β copy exact means copy exact, bestie. π)
it is up the user to free the structure when no longer needed, by calling pbs_statfree(). yes, you. not the library. you. free it. call pbs_statfree().
no cap: thatpbs_statfree()call in the synopsis takesstruct batch_status *psj, and it is your responsibility to free the structure when you're done with it. π«Ά
π SEE ALSO π
qstat(1B)pbs_connect(3B)
π DIAGNOSTICS π
when the batch request generated by pbs_statque() function has been completed successfully by a batch server, the routine will return a pointer to the batch_status structure. otherwise, a null pointer is returned and the error code is set in the global integer pbs_errno. so if you get a null pointer, pbs_errno is where the tea is. check it, bestie. π₯
and that's the page! sign-off time: the footer reads Local and pbs_statque(3B) β that's the source/version line, and there's no date on this one, so no cap, that's all she wrote. mwah π
π¦ where this page comes from
- epel 9: torque-devel 6.1.3-8.el9 Β· OpenPBS and TORQUEv1.1
- nixos 26.05: torque 6.1.3h2
- nixpkgs unstable: torque 6.1.3h2
- Copyright (c) 1999-2000 Veridian Information Solutions, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms