Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@brockpalen
Last active January 3, 2017 17:25
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brockpalen/ffe8c48673f91d3170ee to your computer and use it in GitHub Desktop.
Save brockpalen/ffe8c48673f91d3170ee to your computer and use it in GitHub Desktop.
qselect-samples
#delete all my jobs,
# only do this if you have fewer than a few hundred jobs.
qdel $(qselect -u $USER)
#delete all my queued jobs
qdel $(qselect -u $USER -s Q)
#delete all my jobs submiting with the wrong account
qdel $(qselect -u $USER -A wrongaccount)
#hold all my queued jobs in account_flux
qhold $(qselect -A account_flux -u $USER -s Q)
#release the holds so they can now run
qrls $(qselect -A account_flux -u $USER -s H)
#all jobs for a user|s
qselect -u user
qselect -u user1,user2
#all jobs owned by me in a given PBS account
qselect -u $USER -A account_flux
#all jobs in state Q
# options E: exiting H: held Q: queued R: Running T:trasiting W: Waiting
qselect -s Q
#all jobs Queued and Held
qselect -s QH
#all jobs with walltimes under 24 hours
qselect -l walltime.lt.24:00:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment