-
-
Save martinzh/72dfb8fe7a92de1a7392f905f19805df to your computer and use it in GitHub Desktop.
[PBS] Delete all of the jobs associated to a specific user
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 | |
USERNAME=icaoberg | |
#to kill all the jobs | |
qstat -u$USERNAME | grep "$USERNAME" | cut -d"." -f1 | xargs qdel | |
#to kill all the running jobs | |
qstat -u$USERNAME | grep "R" | cut -d"." -f1 | xargs qdel | |
#to kill all the queued jobs | |
qstat -u$USERNAME | grep "Q" | cut -d"." -f1 | xargs qdel |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment