Skip to content

Instantly share code, notes, and snippets.

@pwwang
pwwang / qst
Last active November 4, 2023 01:54
qstat with full job name
#!/usr/bin/env python
from subprocess import check_output
from re import search
cmd = ['qstat', '-xml']
# get the xml output
output = check_output (cmd)
keys = [] # the feature names
vals = [] # the jobs including all features
job = [] # the features