Skip to content

Instantly share code, notes, and snippets.

@webbedfeet
Forked from icaoberg/killthemall.sh
Last active August 29, 2015 14:10
Show Gist options
  • Save webbedfeet/84d7a2e19727b586be83 to your computer and use it in GitHub Desktop.
Save webbedfeet/84d7a2e19727b586be83 to your computer and use it in GitHub Desktop.
#!/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