pbs_sigjob(3B)
π NAME π
pbs_sigjob β send a signal to a PBS batch job. This is the pbs_sigjob(3B) page from PBS Professional, and yes bestie, itβs giving βpoke the job with a signalβ energy π
β¨
πΈ SYNOPSIS πΈ
#include <pbs_error.h>
#include <pbs_ifl.h>
int pbs_sigjob(int connect, char *jobID, char *signal, char *extend)
π¦ DESCRIPTION π¦
okay so pbs_sigjob issues a batch request to send a signal to a batch job. It generates a Signal Job (18) batch request and sends it to the server over the connection specified by connect. iconic behavior, no cap π
You can send a signal to a job, job array, subjob, or range of subjobs. The batch server sends the job the specified signal.
π¨ important vibe check: the job must be in the running or suspended state. that part is not optional, bestie π
π ARGUMENTS π
connectβ Return value ofpbs_connect(). Specifies connection handle over which to send batch request to server.jobIDβ ID of job to be signaled. The formats are:- Format for a job:
<sequence number>.<server name> - Format for a job array:
<sequence number>[].<server name> - Format for a subjob:
<sequence number>[<index>].<server name> - Format for a range of subjobs:
<sequence number>[<index start>-<index end>].<server name>
- Format for a job:
signalβ Name of signal to send to job. Can be alphabetic, with or without SIG prefix. Can be signal number.
The following special signals are all lower-case, and have no associated signal number:
admin-suspendβ Suspends a job and puts its vnodes into the maintenance state. The job is put into theSstate and its processes are suspended.admin-resumeβ Resumes a job that was suspended using theadmin-suspendsignal, without waiting for scheduler. Cannot be used on jobs that were suspended with thesuspendsignal. When the lastadmin-suspend edjob has beenadmin-resume d, the vnode leaves the maintenance state.suspendβ Suspends specified job(s). Job goes into suspended (S) state.resumeβ Marks specified job(s) for resumption by scheduler when there are sufficient resources. Cannot be used on jobs that were suspended with theadmin_suspendsignal.
If the signal is not recognized on the execution host, no signal is sent and an error is returned. sad but true π«Ά
extendβ Character string for extensions to command. Not currently used.
β¨ RETURN VALUE β¨
The routine returns 0 (zero) on success. slay π
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 that in your notes, bestie π
π SEE ALSO π
qsig(1B), pbs_connect(3B)
π okay thatβs the whole page! source/version: Local; date: 15 November 2019; manual: pbs_sigjob(3B). mwah, bestie ππ
π¦ 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