pbs_default(3B)

πŸ“¦ version 6.1.3, in epel 9, nixos 26.05, nixpkgs unstable

πŸ’– pbs_default(3B) β€” the "who's my server bestie" call πŸ’–

okay so this is pbs_default from section 3B of the PBS manual β€” yes the manual name is literally PBS and yes this page is your lil guide to finding out which server you're defaulting to. buckle up πŸŽ€


✨ NAME ✨

pbs_default β€” returns the pbs default server name πŸ¦‹

✨ SYNOPSIS ✨

#include <pbs_error.h>
#include <pbs_ifl.h>

int pbs_default()

like, that's it. two includes, one function, zero arguments. she's low maintenance πŸ’…

✨ DESCRIPTION ✨

so what happens is a character string gets returned, and that string contains the name of the default PBS server. that's the whole vibe of the function, no cap 🌸

and how does the system decide what the default server is? two ways, bestie β€” it's defined by:

  1. the setting of the environment variable PBS_DEFAULT, which contains a destination, or
  2. the destination in the batch administrator established file {PBS_DIR}/default_destn

that's the tea. one is an env var, the other is a file the batch administrator sets up. {PBS_DIR} goes in the path exactly like that, so don't go renaming it πŸ™ˆ

✨ SEE ALSO ✨

go read these too, they're iconic in their own right πŸ‘‘

  • qsub(1B)
  • pbs_connect(3B)
  • pbs_disconnect(3B)
  • and the PBS External Reference Specification

✨ DIAGNOSTICS ✨

if the default server cannot be determined, a NULL value is returned. so like… check for NULL, fr fr 😭


and that's the page!! this one came from the Local source, dated the same as the footer, and it's section 3B of the PBS manual β€” pbs_default(3B), mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from