Monday, September 28, 2015

How to Release all PBS Jobs with qrls

I have problems using qrls all on the Titan supercomputer. You can use the following little script as an alternative

First create a small script file
emacs qrlsall

In qrlsall, type the following
#!/bin/bash
jobids=$(showq -u tsaad | awk '{if ($3 == "UserHold") print $1;}')
echo $jobids
qrls $jobid
Now make qrlsall executable 
chmod +x qrlsall
Voila!

Cite as:
Saad, T. "How to Release all PBS Jobs with qrls". Weblog entry from Please Make A Note. http://pleasemakeanote.blogspot.com/2015/09/how-to-release-all-pbs-jobs-with-qrls.html