-
Notifications
You must be signed in to change notification settings - Fork 0
/
multi_condor.sh
executable file
·80 lines (69 loc) · 1.86 KB
/
multi_condor.sh
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#!/bin/bash
dataset=$1
#if [[ $dataset == *"DY_50"* ]]
#then
# list=/uscms_data/d3/byates/CMSSW_5_3_14_patch2/src/muon/DY_50.txt
#else
list=/uscms_data/d2/fgior8/LQntuple_18/CMSSW_5_3_14_patch2_LQ/src/code/DataSetList/$dataset.txt
#fi
a=0
little=little
txt=$dataset.txt
b=0
for line in `cat $list`
do
# echo "ciao $line"
echo "$line" >> $little$b$txt
a=$(($a+1))
# echo $a
#request_memory = 200KB
#request_disk = 1MB
#Should_Transfer_Files = YES
#WhenToTransferOutput = ON_EXIT
if [ $a -eq 50 ]
then
echo "condor_submit condor $little$b$txt $1_FR_$b"
cat > simulator<<EOF
universe = vanilla
Executable = rotto.sh
Requirements = OpSys == "LINUX"&& (Arch != "DUMMY" )
request_memory = 400MB
request_disk = 10MB
Should_Transfer_Files = YES
WhenToTransferOutput = ON_EXIT
Output = log/sleep_FR40_job\$(Cluster).stdout
Error = log/sleep_FR40_job\$(Cluster).stderr
Log = log/sleep_FR40_job\$(Cluster).log
notify_user = [email protected]
notification= Never
arguments = \$(Cluster) $little$b$txt $b $dataset
Queue 1
EOF
condor_submit simulator
a=0
#rm "$little$b$txt"
chmod 664 $little$b$txt
b=$(($b+1))
fi
done
echo "condor_submit condor $little$b$txt $1_FR_$b"
cat > simulator<<EOF
universe = vanilla
Executable = rotto.sh
Requirements = OpSys == "LINUX"&& (Arch != "DUMMY" )
request_memory = 400MB
request_disk = 10MB
Should_Transfer_Files = YES
WhenToTransferOutput = ON_EXIT
Output = log/sleep_FR40_job\$(Cluster).stdout
Error = log/sleep_FR40_job\$(Cluster).stderr
Log = log/sleep_FR40_job\$(Cluster).log
notify_user = [email protected]
notification= Never
arguments = \$(Cluster) $little$b$txt $b $dataset
Queue 1
EOF
condor_submit simulator
#rm "$little$b$txt"
#chmod 664 $little$b$txt
exit 0