pbs_movejob(3B)
π pbs_movejob β a glam little function from section 3B of the PBS Professional manual
okay bestie, gather round, because today we're talking about pbs_movejob, and honestly? it's giving "relocation service for your batch jobs" and I'm obsessed. β¨
πΈ NAME
pbs_movejob β move a PBS batch job to a new destination π¦
β¨ SYNOPSIS
#include <pbs_error.h>
#include <pbs_ifl.h>
int pbs_movejob(int connect, char *jobID, char *destination,
char *extend)
like, that's the whole vibe. two includes, one function, four arguments. clean. π
π DESCRIPTION
So what does it actually do? It issues a batch request to move a job or a job array to a new destination. main character behavior, honestly.
It generates a Move Job (12) batch request and sends it on over to the server using the connection you specified with connect. slay.
Then it moves the specified job or job array from its current queue and server to the specified queue and server. literally packing its little bags. π§³
β οΈ important vibe check: you cannot move a job that's in the Running, Transiting, or Exiting states. nope, not happening, don't even try it. π
π ARGUMENTS
connectβ the return value ofpbs_connect(). it tells us which connection to use to send the batch request to the server. think of it as the group chat you're texting in. π«ΆjobIDβ the ID of the job you want to move. formats go like this:- job:
<sequence number>.<server name> - job array:
<sequence number>[].<server name>
- job:
destinationβ the new location for your job or job array. so many options, so much freedom, here's the full menu:<queue name>@<server name>β the specified queue at the specified server<queue name>β the specified queue at the default server@<server name>β the default queue at the specified server@defaultβ the default queue at the default server- (null pointer or null string) β default queue at default server
extendβ a character string for extensions to the command. not currently used. she's just there for moral support. π
π RETURN VALUE
The routine returns 0 (zero) on success. periodt. π
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 if something goes wrong, that's where the receipts live. π
π SEE ALSO
qmove(1B)pbs_connect(3B)
iykyk β go read those next. π₯
and that's the page, bestie! this lil number lives in the Local section, dated 15 November 2019, and it's part of the PBS Professional manual. mwah, go move some jobs responsibly ππΈ
π¦ 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