Created
February 4, 2013 17:49
-
-
Save icaoberg/4708282 to your computer and use it in GitHub Desktop.
[PBS] Get a list of jobs for a specific user given a job state
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Restricts job selection to those in the specified states | |
#E(xiting state) | |
#H(eld state) | |
#Q(ueued state) | |
#R(unning state) | |
#T(ransiting state) | |
#W(aiting state) | |
USERNAME=icaoberg | |
STATE=R | |
#in this example it will retrieve the list of running jobs | |
qselect -s STATE -u $USERNAME |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment