14 print (
"Usage: checkJobs runnr name")
18 prefix = runnr+
'/'+name+
'/'+
'*/*-status.'
19 prefixexit = runnr+
'/'+name+
'/'+
'*/*-exit.'
21 submitted = len(glob.glob(prefix+
'SUBMITTED'))
22 running = len(glob.glob(prefix+
'RUNNING'))
23 completed = len(glob.glob(prefix+
'COMPLETED'))
25 print (
'%4i jobs SUBMITTED' % submitted)
26 print (
'%4i jobs RUNNING' % running)
27 print (
'%4i jobs COMPLETED' % completed)
28 print (
'%4i jobs with exit status 0' % len(glob.glob(prefixexit+
'0')))