Skip to content

Instantly share code, notes, and snippets.

@icaoberg
Created February 4, 2013 17:49
Show Gist options
  • Save icaoberg/4708282 to your computer and use it in GitHub Desktop.
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
#!/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