This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |