Last active
May 6, 2024 16:37
-
-
Save icaoberg/5374558 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
fantastic, thanks