xpbs(1B)
π NAME π
okay bestie, welcome to xpbs(1B) β the PBS manual page that's about to make your whole terminal life easier. xpbs is a GUI front end to PBS commands. periodt. π
β¨ SYNOPSIS β¨
xpbs [-admin]
π DESCRIPTION π
The xpbs command gives you a user-friendly point-and-click interface to PBS commands. Literally such a slay. Please see the sections below for a tour and tutorials β yes, there are tutorials, we're being thorough. Also, within every dialog box, a Help</> button can be found for assistance. so if you're ever like "bestie what does this button do," the answer is right there π«Ά
π¦ OPTIONS π¦
-adminβ a mode where additional buttons are made available for terminating PBS servers, starting/stopping/disabling/enabling queues, and running/rerunning jobs. it's giving extra powers, use responsibly π
πΈ GETTING STARTED πΈ
Running xpbs will initialize the X resource database from various sources in the following order:
- The
RESOURCE_MANAGERproperty on the root window (updated viaxrdb) with settings usually defined in the.Xdefaultsfile - Preference settings defined by the system administrator in the global
xpbsrcfile - User's
~/.xpbsrcfile β this file defines various X resources like fonts, colors, list of PBS hosts to query, criteria for listing queues and jobs, and various view states. See the PREFERENCES section below for a list of resources that can be set.
π RUNNING XPBS π
To run xpbs as a regular, non-privileged user, type:
setenv DISPLAY <display_host>:0
xpbs
To run xpbs with the additional purpose of terminating PBS servers, stopping and starting queues, or running/rerunning jobs, then run:
xpbs -admin
NOTE: Be sure to appropriately set~/.rhostsfile if you're planning to submit jobs to some remote server, and expecting output files to be returned to the local host (wherexpbswas run). Usually, adding the PBS hostname running the server to your.rhostsfile locally, and adding the name of the local machine to the.rhostsfile at remote host, should be sufficient.
Also, be sure that the PBS client commands are in the default PATH because xpbs will call these commands. no cap, it needs to find them π₯
π₯οΈ THE XPBS DISPLAY π₯οΈ
This section describes the main parts of the xpbs display. The main window is composed of 5 distinct areas (subwindows) arranged vertically (one on top of another) in the following order:
- Menu
- Hosts
- Queues
- Jobs
- Info
β Menu β
The Menu area is composed of a row of command buttons that signal some action with a click of the left mouse button. The buttons are:
- Manual Update β to update the information on hosts, queues, and jobs.
- Auto Update β same as Manual Update except updating is done automatically every
<some specified>number of minutes. - Track Job β for periodically checking for returned output files of jobs.
- Preferences β for setting certain parameters such as the list of server host(s) to query.
- Help β contains some help information.
- About β tells of the author and who to send comments, bugs, suggestions to.
- Close β for exiting
xpbsplus saving the current setup information (if anything had changed) in the user's$HOME/.xpbsrcfile. Information saved include the selected host(s), queue(s), job(s), the different jobs listing criteria, the view states (i.e. minimized/maximized) of the Hosts, Queues, Jobs, and INFO regions, and anything in the Preferences section.
π¦ Hosts π¦
The Hosts area is composed of a leading horizontal HOSTS bar, a listbox, and a set of command buttons.
The HOSTS bar contains a minimize/maximize button, identified by a dot or a rectangular image, for displaying or iconizing the Hosts region.
The listbox displays information about favorite server host(s), and each entry is meant to be selected via:
- a single left mouse button click
- shift key + mouse button 1 click for contiguous selection
- cntrl key + mouse button 1 click for non-contiguous selection
The command buttons represent actions on selected host(s), and commonly found buttons are:
- detail β for obtaining detailed information about selected server host(s). This functionality can also be achieved by double clicking on an entry in the Hosts listbox.
- Submit β for submitting a job to any of the queues managed by the selected host(s).
- terminate β for terminating PBS servers on selected host(s). (
-adminonly)
The server hosts can be chosen by specifying in the ~/.xpbsrc file (or .Xdefaults) the resource:
*serverHosts: hostname1 hostname2 ...
Another way of specifying the host is to click on the Preferences button in the Menu region, and manipulate the server Hosts entry widget from the preferences dialog box. iykyk π
π Queues π
The Queues area is composed of a leading horizontal QUEUES bar, a listbox, and a set of command buttons.
The QUEUES bar lists the hosts that are consulted when listing queues; the bar also contains a minimize/maximize button for displaying or iconizing the Queues region.
The listbox displays information about queues managed by the server host(s) selected from the Hosts listbox; each listbox entry is meant to be selected (highlighted) via:
- a single left mouse button click
- shift key + mouse button 1 click for contiguous selection
- cntrl key + mouse button 1 click for non-contiguous selection
The command buttons represent actions for operating on selected queue(s), and commonly found buttons are:
- detail β for obtaining detailed information about selected queue(s). This functionality can also be achieved by double clicking on a Queues listbox entry.
- stop β for stopping the selected queue(s). (
-adminonly) - start β for starting the selected queue(s). (
-adminonly) - disable β for disabling the selected queue(s). (
-adminonly) - enable β for enabling the selected queue(s). (
-adminonly)
π Jobs π
The Jobs area is composed of a leading horizontal JOBS bar, a listbox, and a set of command buttons.
The JOBS bar lists the queues that are consulted when listing jobs; the bar also contains a minimize/maximize button for displaying or iconizing the Jobs region.
The listbox displays information about jobs that are found in the queue(s) selected from the Queues listbox; each listbox entry is meant to be selected (highlighted) via:
- a single left mouse button click
- shift key + mouse button 1 click for contiguous selection
- cntrl key + mouse button 1 click for non-contiguous selection
The region just above the Jobs listbox shows a collection of command buttons whose labels describe criteria used for filtering the Jobs listbox contents. The list of jobs can be selected according to:
- owner of jobs (Owners)
- job state (Job_States)
- name of the job (Job_Name)
- type of hold placed on the job (Hold_Types)
- the account name associated with the job (Account_Name)
- checkpoint attribute (Checkpoint)
- time the job is eligible for queueing/execution (Queue_Time)
- resources requested by the job (Resources)
- priority attached to the job (Priority)
- whether or not the job is rerunnable (Rerunnable)
The selection criteria can be modified by clicking on any of the appropriate command buttons to bring up a selection box. The criteria command buttons are accompanied by a Select Jobs button, which when clicked, will update the contents of the Jobs listbox based on the new selection criteria. Please see qselect(1B) for more details on how the jobs are filtered. slay π
Finally, to the right of the listbox, the Jobs region is accompanied by the following command buttons, for operating on selected job(s):
- detail β for obtaining detailed information about selected job(s). This functionality can also be achieved by double clicking on a Jobs listbox entry.
- modify β for modifying attributes of the selected job(s).
- delete β for deleting the selected job(s).
- hold β for placing some type of hold on selected job(s).
- release β for releasing held job(s).
- signal β for sending signals to selected job(s) that are running.
- msg β for writing a message string into the output streams of the selected job(s).
- move β for moving selected job(s) into some specified destination queue.
- order β for exchanging order of two selected jobs in a queue.
- run β for running selected job(s). (
-adminonly) - rerun β for requeueing selected job(s) that are running. (
-adminonly)
π«Ά Info π«Ά
The Info Area shows the progress of the commands' executed by xpbs. Look into this box for errors. The INFO bar also contains a minimize/maximize button for displaying or iconizing the Info region.
β¨ WIDGETS USED IN XPBS β¨
okay so bestie, here's the lowkey tea on the widgets you'll be touching in xpbs and how to work them π
1. listbox
can be multi-selectable (a number of entries can be selected/highlighted using a mouse click) or single-selectable (one entry can be highlighted at a time). For a multi-selectable listbox, the following operations are allowed:
- a. single click with mouse button 1 to select/highlight an entry.
- b. shift key + mouse button 1 to contiguously select more than one entry.
- c. cntrl key + mouse button 1 to non-contiguously select more than one entry. NOTE: For systems running
Tk < 4.0, the newly selected item is reshuffled to appear next to already selected items. - d. click the Select All/Deselect All button to select all entries or deselect all entries at once.
- e. double clicking an entry usually activates some action that uses the selected entry as a parameter.
2. scrollbar
usually appears either vertically or horizontally and contains 5 distinct areas that are mouse clicked to achieve different effects:
- top arrow β Causes the view in the associated widget to shift up by one unit (i.e. the object appears to move down one unit in its window). If the button is held down the action will auto-repeat.
- top gap β Causes the view in the associated window to shift up by one less than the number of units in the window (i.e. the portion of the object that used to appear at the very top of the window will now appear at the very bottom). If the button is held down the action will auto-repeat.
- slider β Pressing button 1 in this area has no immediate effect except to cause the slider to appear sunken rather than raised. However, if the mouse is moved with the button down then the slider will be dragged, adjusting the view as the mouse is moved.
- bottom gap β Causes the view in the associated window to shift down by one less than the number of units in the window (i.e. the portion of the object that used to appear at the very bottom of the window will now appear at the very top). If the button is held down the action will auto-repeat.
- bottom arrow β Causes the view in the associated window to shift down by one unit (i.e. the object appears to move up one unit in its window). If the button is held down the action will auto-repeat.
3. entry
brought into focus with a click of the left mouse button. To manipulate this widget, simply type in the text value. Use of arrow keys, mouse selection of text for deletion or overwrite, copying and pasting with sole use of mouse buttons are permitted. This widget is usually accompanied by a scrollbar for horizontally scanning a long text entry string.
4. matrix of entry boxes
usually shown as several rows of entry widgets where a number of entries (called fields) can be found per row. The matrix is accompanied by up/down arrow buttons for paging through the rows of data, and each group of fields gets one scrollbar for horizontally scanning long entry strings. Moving from field to field can be done using the Tab, Cntrl-f, or Cntrl-b (move backwards) keys.
5. spinbox
a combination of an entry widget and a horizontal scrollbar. The entry widget will only accept values that fall within a defined list of valid values, and incrementing through the valid values is done by clicking on the up/down arrows.
6. button
a rectangular region appearing either raised or pressed that invokes an action when clicked with the left mouse button. When the button appears pressed, then hitting the RETURN key will automatically select the button.
7. text
an editor like widget. This widget is brought into focus with a click of the left mouse button. To manipulate this widget, simply type in the text. Use of arrow keys, backspace/delete key, mouse selection of text for deletion or overwrite, copying and pasting with sole use of mouse buttons are permitted. This widget is usually accompanied by a scrollbar for vertically scanning a long entry.
πΈ SUBMITTING JOBS πΈ
Submitting a PBS job requires only to manipulate the widgets found in the Submit window. The submit dialog box is composed of 4 distinct regions:
- Job Script
- OPTIONS
- OTHER OPTIONS
- Command Buttons
The Job Script file region is at the upper left, the OPTIONS region containing various widgets for setting job attributes is scattered all over the dialog box, the OTHER OPTIONS is located just below the Job Script file region, and Command Buttons region is at the bottom.
The job script region is composed of a header box, the text box, FILE entry box, and a couple of buttons labeled load and save. If you have a script file containing PBS options and executable lines, then type the name of the file on the FILE entry box, and then click on the load button. The various widgets in the Submit window will get loaded with values found in the script file. The script file text box will only be loaded with executable lines (non-PBS) found in the script. The job script header box has a Prefix entry box that can be modified to specify the PBS directive to look for when parsing a script file for PBS options. If you don't have a script file, you can start typing the executable lines of the job in the file text box.
To submit a job, perform the following steps:
- Select a host from the HOSTS listbox in the main xpbs display.
- Click on the Submit button located in the Menu bar.
- Specify the script file containing the job execution lines and job property values, or simply type in the execution lines in the FILE textbox.
- Start manipulating the various widgets in the Submit window. Particularly, pay close attention to the Destination listbox. This box lists all the queues found in the host that you selected. A special entry called
@hostrefers to the default queue at host. Select appropriately the destination queue of the job. More options can be found by clicking the OTHER OPTIONS buttons. - At the bottom of the Submit window, click confirm submit. You can also click on interactive to run the job interactively. Running a job interactively will open an xterm window to your display host containing the session.
NOTE: The script FILE entry box is accompanied by a save button that you click to save the current widget values to the specified file in a form that can later be read by xpbs or by the qsub command.
π MODIFYING ATTRIBUTES OF JOBS π
Modifying a PBS job requires only to manipulate the widgets found in the Modify window. To modify a job or jobs, do the following steps:
- Select one or more jobs from the JOBS listbox in the main xpbs display.
- Click on the modify button located to the right of the listbox.
- The Modify window is structured similarly to the Submit window. Simply manipulate the widgets to specify replacement or additional values of job attributes.
- Click on the confirm modify button located at the bottom of the dialog box.
π¦ DELETING JOBS π¦
Deleting a PBS job requires only to manipulate the widgets found in the Delete window. To delete a job or jobs, do the following steps:
- Select one or more jobs from the JOBS listbox in the main xpbs display.
- Click on the delete button located to the right of the listbox.
- Manipulate the spinbox widget to set the kill delay signal interval.
- Click on the delete button located at the bottom of the dialog box.
π TRACKING RETURNED OUTPUT FILES π
If you want to be informed of returned output files of current jobs, and be able to quickly see the contents of those files, then enable the "track job" feature as follows:
- Submit all the jobs that you want monitored.
- Click on the Track Job button located in the Menu bar to bring up the Track Job dialog box.
- Specify the list of user names, whose jobs are to be monitored for returned output files, in the matrix located at the upper left of the dialog box.
- Manipulate the minutes spinbox, located just below the user names matrix, to specify the interval value when output files will be periodically checked.
- Specify the location of job output files (whether locally or remotely) by clicking on one of the radio buttons located at the upper right of the dialog box. Returned locally means the output files will be returned back to the host where xpbs was run. If the output files are returned to some remote host, then xpbs will execute an
RSH <remote_host> test -f <output_files>to test the existence of the files. RSH is whatever you set the remote shell command to in the corresponding entry box.
NOTE: Be sure the files are accessible from the host where xpbs was run (i.e. .rhosts appropriately set).
- Click start/reset tracking button located at the bottom of the dialog box to:
- cancel any previous tracking
- build a new list of jobs to be monitored for returned output files based on currently queued jobs.
- start periodic tracking.
- Click on close window button.
When an output file for a job being monitored is found, then the Track Job button (the one that originally invoked the Track Job dialog box) will turn into a different color, and the Jobs Found Completed listbox, located in the Track Job dialog box, is then loaded with the corresponding job id(s). Then double click on a job id to see the contents of the output file and the error file. Click stop tracking if you want to cancel tracking.
πͺ LEAVING XPBS
When you're done and it's time to log off (self care, bestie π ), just click the Close button in the Menu bar and dip.
But heads up β if anything had changed, it's gonna pop up a dialog box asking you to confirm saving state information. And what counts as state info? The view states (minimize/maximize) of the HOSTS, QUEUES, JOBS, and INFO subwindows, plus various criteria for listing queues and jobs. All of that gets saved in the ~/.xpbsrc file. So yeah, say yes and keep your setup cute for next time π
π PREFERENCES
Okay so this is the good part β the resources you can set in the X resources file, ~/.xpbsrc. Here's every single one, no skips:
*serverHostsβ list of server hosts (space separated) that xpbs queries.*timeoutSecsβ how many seconds before it times out waiting for a connection to a PBS host.*xtermCmdβ thextermcommand to run when driving an interactive PBS session.*labelFontβ the font applied to text appearing in labels.*fixlabelFontβ the font applied to text that label fixed-width widgets like listbox labels. This must be a fixed-width font. (not a suggestion, bestie π«Ά)*textFontβ the font applied to a text widget. Keep this as fixed-width font. Same energy.*backgroundColorβ the color applied to the background of frames, buttons, entries, scrollbar handles.*foregroundColorβ the color applied to text in any context (under selection, insertion, etc...).*activeColorβ the color applied to the background of a selection, a selected command button, or a selected scroll bar handle.*disabledColorβ color applied to a disabled widget.*signalColorβ color applied to buttons that signal something to the user about a change of state. Example: the color of the Track Job button when returned output files are detected. (it's giving "notice me" energy π)*shadingColorβ a color shading applied to some of the frames to emphasize focus as well as decoration. Purely aesthetic slay β¨*selectorColorβ the color applied to the selector box of a radiobutton or checkbutton.*selectHostsβ list of hosts (space separated) to automatically select/highlight in the HOSTS listbox.*selectQueuesβ list of queues (space separated) to automatically select/highlight in the QUEUES listbox.*selectJobsβ list of jobs (space separated) to automatically select/highlight in the JOBS listbox.*selectOwnersβ list of owners checked when limiting the jobs appearing on the Jobs listbox in the main xpbs window. Specify the value as"Owners: <list_of_owners>". See the-uoption inqselect(1B)for the format of<list_of_owners>.*selectStatesβ list of job states to look for (do not space separate) when limiting the jobs appearing on the Jobs listbox in the main xpbs window. Specify the value as"Job_States: <states_string>". See the-soption inqselect(1B)for the format of<states_string>.*selectResβ list of resource amounts (space separated) to consult when limiting the jobs appearing on the Jobs listbox in the main xpbs window. Specify the value as"Resources: <res_string>". See the-loption inqselect(1B)for the format of<res_string>.*selectExecTimeβ the Execution Time attribute to consult when limiting the list of jobs appearing on the Jobs listbox in the main xpbs window. Specify the value as"Queue_Time: <exec_time>". See the-aoption inqselect(1B)for the format of<exec_time>.*selectAcctNameβ the name of the account that will be checked when limiting the jobs appearing on the Jobs listbox in the main xpbs window. Specify the value as"Account_Name: <account_name>". See the-Aoption inqselect(1B)for the format of<account_name>.*selectCheckpointβ the checkpoint attribute relationship (including the logical operator) to consult when limiting the list of jobs appearing on the Jobs listbox in the main xpbs window. Specify the value as"Checkpoint: <checkpoint_arg>". See the-coption inqselect(1B)for the format of<checkpoint_arg>.*selectHoldβ the hold types string to look for in a job when limiting the jobs appearing on the Jobs listbox in the main xpbs window. Specify the value as"Hold_Types: <hold_string>". See the-hoption inqselect(1B)for the format of<hold_string>.*selectPriorityβ the priority relationship (including the logical operator) to consult when limiting the list of jobs appearing on the Jobs listbox in the main xpbs window. Specify the value as"Priority: <priority_value>". See the-poption inqselect(1B)for the format of<priority_value>.*selectRerunβ the rerunnable attribute to consult when limiting the list of jobs appearing on the Jobs listbox in the main xpbs window. Specify the value as"Rerunnable: <rerun_val>". See the-roption inqselect(1B)for the format of<rerun_val>.*selectJobNameβ name of the job that will be checked when limiting the jobs appearing on the Jobs listbox in the main xpbs window. Specify the value as"Job_Name: <jobname>". See the-Noption inqselect(1B)for the format of<jobname>.*iconizeHostsViewβ a boolean value (trueorfalse) indicating whether or not to iconize the HOSTS region.*iconizeQueuesViewβ a boolean value (trueorfalse) indicating whether or not to iconize the QUEUES region.*iconizeJobsViewβ a boolean value (trueorfalse) indicating whether or not to iconize the JOBS region.*iconizeInfoViewβ a boolean value (trueorfalse) indicating whether or not to iconize the INFO region.*jobResourceListβ a curly-braced list of resource names as according to architecture known to xpbs. The format is literally this:
{ <arch-type1> resname1 resname2 ... resnameN }
{ <arch-type2> resname1 resname2 ... resnameN }
. . .
{ <arch-typeN> resname1 resname2 ... resnameN }
π₯ XPBS AND PBS COMMANDS
Lowkey one of the coolest things about xpbs is it's just calling the real PBS commands under the hood. No cap. Here's exactly what each Command Button runs:
detail(Hosts) βqstat -B -f <selected server_host(s)>terminateβqterm <selected server_host(s)>detail(Queues) βqstat -Q -f <selected queue(s)>stopβqstop <selected queue(s)>startβqstart <selected queue(s)>enableβqenable <selected queue(s)>disableβqdisable <selected queue(s)>detail(Jobs) βqstat -f <selected job(s)>modifyβqalter <selected job(s)>deleteβqdel <selected job(s)>holdβqhold <selected job(s)>releaseβqrls <selected job(s)>runβqrun <selected job(s)>rerunβqrerun <selected job(s)>signalβqsig <selected job(s)>msgβqmsg <selected job(s)>moveβqmove <selected job(s)>orderβqorder <selected job(s)>
(and yes, qrerun really does have two spaces before <selected job(s)> β preserving it exactly, iykyk π«Ά)
π EXIT STATUS
- If everything processes successfully, the xpbs exit status will be a value of zero. slay β¨
- If the xpbs command fails, it exits with a value greater than zero. (that's your cue to go read the error, bestie, don't ignore it π)
π¦ SEE ALSO
Your reading list, go be nosy:
qalter(1B), qdel(1B), qhold(1B), qmove(1B), qmsg(1B), qrerun(1B), qrls(1B), qselect(1B), qsig(1B), qstat(1B), qorder(1B), qsub(1B), qdisable(8B), qenable(8B), qrun(8B), qstart(8B), qstop(8B), qterm(8B).
π«Ά that's the whole page, bestie
You made it to the end!! π This one's from Local and it's xpbs(1B) β the version line at the bottom didn't hand us a date to shout about, so we're just repping the source and the section like the icons they are. Now go submit some jobs and make main character energy out of that queue. ππ
π¦ where this page comes from
- epel 9: torque-gui 6.1.3-8.el9 Β· OpenPBS and TORQUEv1.1
- nixos 26.05: torque 6.1.3h2
- nixpkgs unstable: torque 6.1.3h2
- Copyright (c) 1999-2000 Veridian Information Solutions, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms