Skip to content

Instantly share code, notes, and snippets.

View smsharma's full-sized avatar

Siddharth Mishra-Sharma smsharma

View GitHub Profile
@smsharma
smsharma / kill_all_jobs.sh
Created October 15, 2015 15:38
Kill all jobs on a PBS scheduler. Need to specify username in file.
#!/bin/bash
USERNAME=smsharma
#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