pbs_locjob(3B)
π
pbs_locjob(3B) β PBS Professional, bestie β¨
πΈ NAME πΈ
pbs_locjob β return current location of a PBS batch job. No cap, that's literally the whole mission. π«Ά
β¨ SYNOPSIS β¨
#include <pbs_error.h>
#include <pbs_ifl.h>
char *pbs_locjob(int connect, char *jobID, char *extend)
π DESCRIPTION π
Okay so this function issues a batch request to locate a batch job or job array. It's giving "where is that job at?" energy. π₯
It generates a Locate Job (8) batch request and sends it to the server over the connection specified by connect.
If the server currently manages the batch job, or knows which server does currently manage the job, the server returns the location of the job. Iconic behavior, honestly. π
π ARGUMENTS π
connectβ Return value ofpbs_connect(). Specifies connection over which to send batch request to server. It's the little communication line you already set up, bestie. πjobIDβ ID of job to be located. Format for a job:
<sequence number>.<server name>
Format for a job array:
<sequence number>[].<server name>
extendβ Character string for extensions to command. Not currently used. It's just chilling there for now. π§
π§Ό CLEANUP π§Ό
The character string returned by pbs_locjob() is allocated by pbs_locjob(). You must free it via a call to free(). Do not forget, babe β that's a memory leak waiting to happen. ππ
π₯ RETURN VALUE π₯
On success, returns a pointer to a character string containing current location. Format:
<server name>
On failure, returns a null pointer, and the error number is available in the global integer pbs_errno. So if it flops, check pbs_errno, okay? π«Ά
π SEE ALSO π
pbs_connect(3B)β your connection bestie π
xoxo, from Local π β dated 15 November 2019 β pbs_locjob(3B) out, slay π
β¨
π¦ 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