qselect(1B)
πΈ NAME πΈ
qselect β select specified PBS jobs. Hii bestie, welcome to the qselect(1B) page for PBS Professional: the manual with job-filter main character energy. π
β¨
π SYNOPSIS π
The whole flag lineup, verbatim, no edits:
qselect [-a [<op>] <date and time>] [-A <account string>]
[-c [<op>] <interval>] [-h <hold list>] [-H] [-J]
[-l <resource list>] [-N <name>] [-p [<op>] <priority>]
[-P <project>] [-q <destination>] [-r <rerun>] [-s <states>]
[-t <time option> [<comparison>] <specified time>] [-T]
[-u <user list>] [-x]
qselect --version
π DESCRIPTION π
okay so the qselect command lists those jobs that meet the specified selection criteria. You can compare certain job attribute values to specified values using a comparison operator β it shows up as op in the option descriptions. Cute, right? π
You can select jobs, job arrays, or subjobs. You can select jobs from one server per call to the command β one server, one call, no glow-up across servers, bestie. β¨
Each option is a filter, and its whole job is restricting which jobs are listed. Every option? Filter. The vibe? Narrowed down. π
You can select jobs according to the values of some of the resources in the Resource_List job attribute. You can also select jobs according to the selection directive β but because that one is a string, you can only check for equality or inequality. String behavior, no cap. π§
Jobs that are finished or moved are listed only when the -x or -H options are used. Otherwise, job selection is limited to queued and running jobs. That's the default window, and it is lowkey important. π
π₯ Comparison Operations π₯
You can select jobs by comparing the values of certain job attributes to values you specify. Here's the comparison-operation menu, with every operation and its comparison type:
.eq.β the value of the attribute of the job is equal to the value of the option argument..ne.β the value of the attribute of the job is not equal to the value of the option argument..ge.β the value of the attribute of the job is greater than or equal to the value of the option argument..gt.β the value of the attribute of the job is greater than the value of the option argument..le.β the value of the attribute of the job is less than or equal to the value of the option argument..lt.β the value of the attribute of the job is less than the value of the option argument.
Example time: to select jobs whose Priority attribute has a value greater than 5, you run:
qselect -p.gt.5
Where an optional comparison is not specified, the comparison operation defaults to .eq, meaning PBS checks whether the value of the attribute is equal to the option argument. Default behavior, iconic. π
π Required Permissions π
When selecting jobs according to resource values, users without Operator or Manager privilege cannot specify custom resources which were created to be invisible to unprivileged users. That's the permission check, and it is not playing around. π
β¨ Options to qselect β¨
(no options)β Lists all jobs at the server which the user is authorized to list (query status of).-a [<op>] <date and time>β Deprecated. Restricts selection to those jobs whoseExecution_Timeattribute qualifies when compared to the date and time argument. You can select a range of execution times by using this option twice, to compare to a minimum time and a maximum time.
The date and time argument has the format:
[[CC]YY]MMDDhhmm[.SS]
where the MM is the two digits for the month, DD is the day of the month, hh is the hour, mm is the minute, and the optional SS is the seconds. CC is the century and YY the year.
-A <account string>β Restricts selection to jobs whoseAccount_Nameattribute matches the specified account string.-c [<op>] <interval>β Restricts selection to jobs whoseCheckpointinterval attribute meets the comparison criteria.
The interval argument can take one of the following values:
c
c=<minutes>
n
s
w
w=<minutes>
We give the range of interval values for the Checkpoint attribute the following ordered relationship:
n > s > c=minutes > c > u
(Information about w and w=<minutes> is not available.)
For an interval value of "u", only .eq and .ne are valid.
-h <hold list>β Restricts the selection of jobs to those with a specific set of hold types. The holds in theHold_Typesjob attribute must be the same as those in the hold list argument, but can be in a different order.
The hold list argument is a string consisting of the single letter n, or one or more of the letters u, o, p, or s in any combination. If letters are duplicated, they are treated as if they occurred once. The letters represent the hold types:
nβ Noneuβ Useroβ Otherpβ Bad passwordsβ System
-Hβ Restricts selection to finished and moved jobs.-Jβ Limits selection to job arrays only.-l <resource list>β Restricts selection of jobs to those with specified resource amounts. Resource must be job-wide, or bemem,ncpus, orvmem.
The resource list is in the following format:
<resource name> <op> <value>[,<resource name> <op> <value> ...]
You must specify op, and you can use any of the comparison operators.
Because resource specifications for chunks using the select statement, and placement using the place statement, are stored as strings, the only useful operators for these are .eq. and .ne.
Unprivileged users cannot specify custom resources which were created to be invisible to unprivileged users.
-N <name>β Restricts selection of jobs to those with the specified value for theJob_Nameattribute.-p [<op>] <priority>β Restricts selection of jobs to those with the specifiedPriorityvalue(s).-P <project>β Restricts selection of jobs to those matching the specified value for the project attribute.
Format: Project Name
-q <destination>β Restricts selection to those jobs at the specified destination.
The destination may take one of the following forms:
<queue name>β Restricts selection to the specified queue at the default server.@<server name>β Restricts selection to the specified server.<queue name>@<server name>β Restricts selection to the specified queue at the specified server.
If the -q option is not specified, jobs are selected from the default server.
-r <rerun>β Restricts selection of jobs to those with the specified value for theRerunableattribute. The option argument rerun must be a single character, eitheryorn.-s <states>β Restricts job selection to those whosejob_stateattribute has the specified value(s).
The states argument is a character string consisting of any combination of these characters: B, E, F, H, M, Q, R, S, T, U, W, and X. (A repeated character is accepted, but no additional meaning is assigned to it.)
Bβ Job array has started executionEβ The Exiting stateFβ The Finished stateHβ The Held stateMβ The Moved stateQβ The Queued stateRβ The Running stateSβ The Suspended stateTβ The Transiting stateUβ Job suspended due to workstation user activityWβ The Waiting stateXβ The eXited state. Subjobs only
Jobs in any of the specified states are selected.
Job arrays are never in states R, S, T, or U. Subjobs may be in those states.
-t <time option> [<op>] <specified time>β Jobs are selected according to one of their time-based attributes. The time option specifies which time-based attribute is tested. You give the specified time in datetime format.
The time option is one of the following:
aβExecution_Timeβ Timestamp. Time the job is eligible for execution. Specified in datetime format.cβctimeβ Timestamp; time at which the job was created. Printed byqstatin human-readable format. Output in hooks as seconds since epoch.eβetimeβ Timestamp; time when job became eligible to run, i.e. was enqueued in an execution queue and was in the"Q"state. Reset when a job moves queues, or is held then released. Not affected byqaltering. Printed byqstatin human-readable format. Output in hooks as seconds since epoch.gβeligible_timeβ Amount of eligible time job accrued waiting to run. Specified as duration.mβmtimeβ Timestamp; the time that the job was last modified, changed state, or changed locations. Printed byqstatin human-readable format. Output in hooks as seconds since epoch.qβqtimeβ Timestamp; the time that the job entered the current queue. Printed byqstatin human-readable format. Output in hooks as seconds since epoch.sβstimeβ Timestamp; time the job started. Updated when job is restarted. Printed byqstatin human-readable format. Output in hooks as seconds since epoch.tβestimated.start_timeβ Job's estimated start time. Specified in datetime format. Printed byqstatin human-readable format. Output in hooks as seconds since epoch.
To bracket a time period, use the -t option twice. For example, to select jobs using stime between noon and 3 p.m.:
qselect -ts.gt.09251200 -ts.lt.09251500
-Tβ Limits selection to jobs and subjobs.-u <user list>β Restricts selection to jobs owned by the specified usernames.
Syntax of user_list:
<username>[@<hostname>][,<username>[@<hostname>],...]
Selects jobs which are owned by the listed users at the corresponding hosts. Hostnames may be wildcarded on the left end, e.g. "*.nasa.gov". A username without a "@<hostname>" is equivalent to "<username>@*", meaning that it is valid at any host.
-xβ Selects finished and moved jobs in addition to queued and running jobs.--versionβ Theqselectcommand returns its PBS version information and exits. This option can only be used alone.
πΈ STANDARD OUTPUT πΈ
PBS writes a list of the selected job IDs to standard output. Each job ID is separated by white space. A job ID can represent a job, a job array, or a subjob. Each job ID has one of the forms:
<sequence number>.<server name>[@<server name>]
<sequence number>[].<server name>[@<server name>]
<sequence number>[<index>].<server name>[@<server name>]
@<server name> identifies the server which currently owns the job.
π STANDARD ERROR π
The qselect command writes a diagnostic message to standard error for each error occurrence.
π EXIT STATUS π
Zeroβ Upon successful processing of all options presented to theqselectcommandGreater than zeroβ If theqselectcommand fails to process any option
π¦ SEE ALSO π¦
qstat(1B), qsub(1B), pbs_job_attributes(7B), pbs_resources(7B)
π Thatβs the whole qselect(1B) page, bestie β source/version is Local, dated 6 May 2020. Byeee! π«Ά
π¦ 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