26 |
cnow = time.ctime() # this hack is to get around time zone problems |
cnow = time.ctime() # this hack is to get around time zone problems |
27 |
if 'file' in kw.keys() and kw['file'] != None: |
if 'file' in kw.keys() and kw['file'] != None: |
28 |
cmdstr = '/bin/cat ' + kw['file'] |
cmdstr = '/bin/cat ' + kw['file'] |
|
elif 'host' in kw.keys() and kw['host'] != None: |
|
|
cmdstr = 'qstat -f ' + kw['host'] |
|
29 |
else: |
else: |
30 |
cmdstr = 'qstat -f' |
cmdstr = 'qstat -f' |
31 |
(stat, qstatout) = commands.getstatusoutput(cmdstr) |
(stat, qstatout) = commands.getstatusoutput(cmdstr) |