9 from __future__
import print_function
15 print (
"Usage: checkJobs runnr name")
19 prefix = runnr+
'/'+name+
'/'+
'*/*-status.'
20 prefixexit = runnr+
'/'+name+
'/'+
'*/*-exit.'
22 submitted = len(glob.glob(prefix+
'SUBMITTED'))
23 running = len(glob.glob(prefix+
'RUNNING'))
24 completed = len(glob.glob(prefix+
'COMPLETED'))
26 print (
'%4i jobs SUBMITTED' % submitted)
27 print (
'%4i jobs RUNNING' % running)
28 print (
'%4i jobs COMPLETED' % completed)
29 print (
'%4i jobs with exit status 0' % len(glob.glob(prefixexit+
'0')))