pbs_runjob(3B)
π NAME π
okay bestie, you're reading pbs_runjob(3B) from PBS Professional. This page is all about pbs_runjob β run a PBS batch job. iconic π
β¨ SYNOPSIS β¨
#include <pbs_error.h>
#include <pbs_ifl.h>
int pbs_runjob(int connect, char *jobID, char *location,
char *extend)
π¦ DESCRIPTION π¦
So like, pbs_runjob() issues a batch request to run a batch job. fr fr.
It generates a Run Job (15) request and sends it to the server over the connection specified by connect.
If no file stagein is required, the server replies when the job has started execution. If file stagein is required, the server replies when staging is started. the way that works π«
π REQUIRED PRIVILEGE π
Bestie, you must have Manager or Operator privilege to use this command. no cap.
π ARGUMENTS π
connect
Return value of pbs_connect(). Specifies connection over which to send batch request to server.
jobID
ID of job to be run.
Format for a job:
<sequence number>.<server name>
Format for a job array:
<sequence number>[].<server name
location
Location where job should run, and optionally resources to use. Same as qrun -H:
-H <vnode specification without resources> β the vnode specification without resources has this format:
(<vchunk>)[+(<vchunk>) ...]
where vchunk has the format
<vnode name>[+<vnode name> ...]
Example: -H (VnodeA+VnodeB)+(VnodeC)
PBS applies one requested chunk from the job's selection directive in round-robin fashion to each vchunk in the list. Each vchunk must be sufficient to run the job's corresponding chunk, otherwise the job may not execute correctly. periodt π
-H <vnode specification with resources> β the vnode specification with resources has this format:
(<vchunk>)[+(<vchunk>) ...]
where vchunk has the format
<vnode name>:<vnode resources>[+<vnode name>:<vnode
resources> ...]
and where vnode resources has the format
<resource name>=<value>[:<resource name>=<value> ...]
Example:
-H (VnodeA:mem=100kb:ncpus=1)+
(VnodeB:mem=100kb:ncpus=2+ VnodeC:mem=100kb)
PBS creates a new selection directive from the vnode specification with resources, using it instead of the original specification from the user. Any single resource specification results in the job's original selection directive being ignored. Each vchunk must be sufficient to run the job's corresponding chunk, otherwise the job may not execute correctly.
If the job being run requests-l place=exclhost, take extra care to satisfy theexclhostrequest. Make sure that if any vnodes are from a multi-vnoded host, all vnodes from that host are allocated. Otherwise those vnodes can be allocated to other jobs. this part matters, bestie π¨
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.
π«Ά SEE ALSO π«Ά
Go check out qrun(1B), pbs_asyrunjob(3B), and pbs_connect(3B) β iykyk π
okay that's the whole vibe! Source/version: Local; date: 15 November 2019. Bye bestie, go run that job πππ¦
π¦ 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