This is a rather simple question but I haven\'t been able to find an answer.
I have a large number of jobs running in a cluster (>20) and I\'d like to delete them al
Try
$ qdel {id1..id2}
So for example:
$ qdel {1148613..1148650}
sometimes a simple grep/cut
can help too:
qstat | grep $USER | cut -d. -f1 | xargs qdel
This way we can also grep
on a particular keyword for the jobs and delete them.
HTH
qstat | cut -d. -f1 | sed "s; \(.*\) 0;qdel \1;" | bash
sed's power.
For UGE:
qstat -u | gawk '{print $1}' | xargs qdel
Found the answer buried in an old supercluster.org thread:
qselect -u <username> | xargs qdel
Worked flawlessly.
Building on what Gabriel answered:
qselect -u <username> | xargs qdel
qselect -u <username> -s <state> | xargs qdel
<state>
would be R
for running jobs only.
qselect will allow you to select job based on other criterias, like ressources asked (-l), destination queue (-q) ...
qdel -u <username>
will only work with SGE