-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsubmit.py
More file actions
28 lines (23 loc) · 738 Bytes
/
Copy pathsubmit.py
File metadata and controls
28 lines (23 loc) · 738 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import os
DIRS = '''/gpfs/group/cdm8/default/veda/ctherm_auto/26_PGK
/gpfs/group/cdm8/default/veda/ctherm_auto/27_PGMT
/gpfs/group/cdm8/default/veda/ctherm_auto/28_PPDK
/gpfs/group/cdm8/default/veda/ctherm_auto/19_LDH_L
'''
DIRS = [d.strip() for d in DIRS.split('\n') if d.strip()]
STATUS_DIC = {}
f = open('status.txt','a')
maindir = os.getcwd()
i = 0
for dirpath in DIRS:
dirname = dirpath.split('/')[-1]
f = open(dirname+'.sh','w')
if i%3==0:
f.write(open('job_cdm.sh').read().format(dirpath))
f.close()
os.system('qsub {0}.sh'.format(dirname))
else:
f.write(open('job_mms.sh').read().format(dirpath))
f.close()
os.system('qsub {0}.sh'.format(dirname))
i+=1