pbs_holdjob(3B)
β¨ pbs_holdjob β¨
ok so this is a page from the PBS Professional manual, bestie β pbs_holdjob(3B), aka the little function that puts a whole entire hold on a PBS batch job. sit down, grab a strawberry drink π, and let's get into it.
π NAME π
pbs_holdjob β place a hold on a PBS batch job. that's it, that's the vibe. it holds the job. iconic behavior honestly. π
π¦ SYNOPSIS π¦
#include <pbs_error.h>
#include <pbs_ifl.h>
int pbs_holdjob(int connect, char *jobID, char *hold_type,
char *extend)
like, copy it exactly please, don't freestyle the signature, i'm begging π
π DESCRIPTION π
okay so what this does: it issues a batch request to place a hold on a job or a job array. that's the whole plot.
this function generates a Hold Job batch request and sends it off to the server over the connection you passed in as connect. literally just vibes and a request going over the wire. β¨
πΈ ARGUMENTS πΈ
connectβ this is the return value ofpbs_connect(). it specifies the connection over which to send the batch request to the server. no connection, no slay. πjobIDβ the ID of the job that's getting held. π«Ά format for a job:
<sequence number>.<server name>
format for a job array:
<sequence number>[].<server name>
hold_typeβ the type of hold you're applying to the job or job array. valid values are defined inpbs_ifl.hβ go look, they're right there. and here's the little detail: ifhold_typeis a null pointer or points to a null string, PBS applies a User hold to the job or job array. default behavior, we love her. πextendβ a character string for extensions to the command. not currently used. it's giving "reserved for later", iykyk π§
β RETURN VALUE β
the routine returns 0 (zero) on success. zero, bestie, we ate. π₯
if an error occurred, the routine returns a non-zero exit value, and the error number is available in the global integer pbs_errno. so when it goes wrong (and π it might), that's where you look.
π SEE ALSO π
qhold(1B), pbs_connect(3B), pbs_alterjob(3B), pbs_rlsjob(3B)
like, the whole friend group. go say hi. π«Ά
ngl, quick vibe check: this page is the Local version, dated 11 December 2019, and it belongs to pbs_holdjob(3B). π that's the sign-off, mwah, go hold some jobs πβ¨
π¦ 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