pbs_locjob(3B)

πŸ“¦ version 23.06.06-unstable-2026-04, in nixos 26.05, nixpkgs unstable

πŸ’… 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 of pbs_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