Skip to content

Instantly share code, notes, and snippets.

View martinzh's full-sized avatar
💀
...

Martin Zumaya martinzh

💀
...
  • Programa Universitario de Estudios sobre Democracia, Justicia y Sociedad - UNAM
  • Mexico City
  • X @martinzh
View GitHub Profile
@martinzh
martinzh / killthemall.sh
Created November 30, 2017 20:21 — forked from icaoberg/killthemall.sh
[PBS] Delete all of the jobs associated to a specific user
#!/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