pbs_sigjob(3B)

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

πŸŽ€ 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 of pbs_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>
  • 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 the S state and its processes are suspended.
  • admin-resume β€” Resumes a job that was suspended using the admin-suspend signal, without waiting for scheduler. Cannot be used on jobs that were suspended with the suspend signal. When the last admin-suspend ed job has been admin-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 the admin_suspend signal.

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